Ask a Question

TC can't find form objects/text boxes

SamuraiJack
Contributor

TC can't find form objects/text boxes

In running an automated test, the URL specified in the initial action for IE changes to a dynamic ASP.Net web page name, but the page name itself and the form elements names don't change.  If  I add a step to the test, it can find the page and that text box, but not the previously added/recorded steps...



I'm guessing my first couple steps are causing the issue.  I'll attach a screen shot of the first few steps.

5 REPLIES 5
syedsafvan
Contributor

RE: TC can't find form objects/text boxes

Jack,



Sorry, Didn't get the exact problem " If  I add a step to the test, it can find the page and that text box, but not the previously added/recorded steps..."




Thankyou

Syed Ahmed Safvan

SamuraiJack
Contributor

RE: TC can't find form objects/text boxes

If I record the test and try to run it on a new window it can't find the form fields. 



If I record or add a new step  using the finder tool for On-Screen actions, it then can find that form field in the new window, but none of the fields on the page from the previously recorded test.



does that clarify things
SamuraiJack
Contributor

RE: TC can't find form objects/text boxes

Here are the errors, if that helps:



Type Message Time Link

The object does not exist. 12:59:28 

The object does not exist. 12:59:28 

The test execution was interrupted. 12:59:28 



An error occurred when executing the "textboxTxtinsurednameFirst" method or property of the "cell" object.

The object or one of its parent objects was not found in the system.


Tested Object

------------------

Alias: Aliases.iexplore.pageInsuredinformation.formForm1.tableBodytable.cellContentcell.tableContenttable.cell.table.cell4.table.cell

Mapping item: NameMapping.Sys.iexplore.pageInsuredinformation.formForm1.tableBodytable.cellContentcell.tableContenttable.cell.table.cell4.table.cell


Missing Object

------------------

Alias: Aliases.iexplore.pageInsuredinformation

Mapping item: NameMapping.Sys.iexplore.pageInsuredinformation




You are trying to call the "Text" method or property of the "textboxTxtinsurednameFirst" object that does not exist.

RE: TC can't find form objects/text boxes

Hi Jack,


I suppose that you are facing the problem because some mapping properties of the target objects are changing dynamically. To avoid the issue, you need to verify the NameMapping scheme and replace all the dynamical parts of the mapping properties with the "*" wildcard. Please see the "Ignoring Query String Parameters" help topic for details.


If you still face the issue, please zip the entire project suite folder and send us the archive via the following web form:

http://www.automatedqa.com/support/message.asp



Best regards,
Alexey

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!
SamuraiJack
Contributor

RE: TC can't find form objects/text boxes

So far, this VBScript seems to have resolved the issue:




Sub Main


Main

 


Aliases.iexplore.pageGrangeagentLogin.formAspnetform.RefreshMappingInfo


 



End Sub



cancel
Showing results for 
Search instead for 
Did you mean: