Forum Discussion
Where exactly in your 8 steps does it fail?
And what is the error it fails with?
Looking at the 8 steps, I'm not clear which bits are on the main page and which parts are on the popup? Also, is this a dialog type popup or some sort of modal popup window generated by the application?
From what you're saying, it does sound like an identification issue. Do any of the identification properties used to identify your problem object (and all it's parents all the way up the tree) look likely to be varying at runtime? Like they contain big longs strings of random looking characters or something?
Well, I was able to get back onto the webpage. I checked the Object Spy and it was mapped. I was able to highlight the checkbox from the name mapping tree (leaving the pointer where it was and using the keyboard to navigate).
It still wouldn't run in the main script. I have a line of code that was basically for refreshing the page
Browsers.Item(btChrome).Navigate("http://mywebsite");
I decided to try to run the script without it, but still calling the broken function. IT WORKED! I don't know why that line was messing things up, but it was. I replaced it with:
Browsers.Item(btChrome).Run("http://mywebsite");
And the whole thing worked!
WT....? Why would that cause things not to work? I even use Browsers.Item(btChrome).Navigate("http://mywebsite"); in the middle of the broken code to refresh the page (I couldn't find an acceptable refresh option)??
- Colin_McCrae9 years agoCommunity Hero
They should both end up in the same place so god only knows!
For refreshing, the browser should give you it as a method: http://support.smartbear.com/viewarticle/70831/
Or failing that, use the Keys method on the page to send it an [F5]. I've used both without any bother.