| || |
"Cannot identify the object..."
I have a data-parameterized test with multiple data-entry screens. On playback, Astra is unable to identify certain fields on certain rows of data because some fields are only conditionally visible.
- On row 1 of data, 'field 1' is visible because 'field x' is checked. Result: Astra enters the data successfully.
- On row 2 of data, 'field 1' is IN-visible because 'field x' is UN-checked. Result: Astra cannot identify 'field 1', saying "Cannot identify the object..."
How can I get Astra to deal with field 1 when it's invisible on the 2nd row of data?
Re: "Cannot identify the object..."
If I understand this correctly, you do not want any value entered into 'field 1' as it does not exist during the second iteration of the test.
What you can do is build in an if statement using the .Exist statement.
If Browser("Browser").Page("Page").Frame("Frame1").We bedit("field1"). Exist Then
Browser("Browser").Page("Page").Frame("Frame1").We bedit("field1").Set DataTable ("column",dtGlobalSheet)