Objects not found on first run

Tuesday, August 5, 2014 5:34:14 AM
Hi,

I've got a weird issue going on with a script which is getting quite frustrating.  The script opens Chrome, navigates to a page and does a Global.DoWaitFor('Search');  It's waiting for the main search button to appear on the page so that I know the page has loaded.  After this it verifies the search button is enabled and that the text is correct. 

The issue I'm having is that the first time you run it you get an object not found error on the verification step.  If I then re-run the script leaving the previous failed chrome window open, the script successfully opens a new Chrome window, navigates to the page but this time finds the objects and passes.  This happens every time if starting from a point of no Chrome window open. I have tried adding in a Global.DoSleep and upped it to 15 seconds (15000), but still no luck on the first run.

Any ideas anyone?

Cheers,
Amanda



2 Replies
Sunday, August 10, 2014 1:24:54 AM
Avatar
re: countdownSupport on Tuesday, August 5, 2014 5:34:14 AM
Hi Amanda

If you have not already done so, I'd recommend logging a help desk ticket since this is pretty specific.

Regards

Jim.
Friday, July 31, 2015 1:50:11 PM
Avatar
re: inflectra.jimx on Saturday, August 9, 2014
Hello,

I am currently experiencing something similar. Sometimes elements that have been learned can be clicked on in order to progress further through the script and at other times the error "element does not appear on screen" is reported.
This is the case for several different elements. Is there a way to fix this?

Sincerely,

Linford
Statistics
  • Started: Tuesday, August 5, 2014 5:34:14 AM
  • Last Reply: Friday, July 31, 2015 1:50:11 PM
  • Replies: 2
  • Views: 5556