Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

Clear Text Field

Hi

Does anyone know how to clear a text field on a website before more text is entered from within the Axe software?

I am using Selenium (CSharp) as the execution tool, and know that selenium has a built in function to clear a text field and was wondering how to pull that across to Axe.

Thanks for any help on this issue.

Jon
Jonathan Alsop Send private email
Wednesday, July 18, 2012
 
 
Hi Jonathan,

Maybe I am missing something obvious here, but you shouldnt need to do anything special to achieve this. Just leave the 'data' part of the test step blank.

Sam
Sam Warwick Send private email
Thursday, July 19, 2012
 
 
Sam

I have tried the method you suggested and it has not worked.

The scenario I am trying to test is entering an invalid username (i.e. XYZ) into a text box, clearing it and entering a valid username (i.e. ABC). When I try to enter the valid username it is not clearing the invalid, resulting in the text box being populated as ABCXYZ. This is also invalid and is resulting in failed tests.

Thanks for any further help on this issue.

Jon
Jonathan Alsop Send private email
Thursday, July 19, 2012
 
 
Hi Jonathan,

Well it sounds like some strange behavior with Selenium and there are a lot of variables here such as; your version of Selenium, whether it is Selenium RC or WebDriver, the Selenium bindings (i.e. language such as CSharp, Java etc) and finally the browser type and version. This could further be compounded by some validation logic in your application?

As I am sure you realise, the problem lies firmly with the underlying execution tool (ie. Selenium) and not Axe. If you have a solution for Selenium (as your previously indicated) then you simply need to wire that up to Axe as a custom function or action override using the the local Axe ActionMap. There are examples of how to do this in the OdinPortal sample provided with Axe and in the Axe Help. Depending on your role on the automation project (i.e. Axe Tester or Axe Technician) you may require some assistance from other team members.

Sam
Sam Warwick Send private email
Friday, July 20, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics