In process of building a regression pack for a web application for our sales team - using IE7 and Robot version 7.02.
Just finding it very annoying that I seem to have to include the following two lines of code everytime I carry out an action, e.g. click on a field, enter text, click radio button, etc: Window SetContext, "Caption=.....","" Browser NewPage,"HTMLTitle=...;Index=0",""
Just wondering if anyone knows of a handy way of avoidnig using these - maybe its just me, just think the code looks untidy repeating the same "window setcontext" etc for every action [img]/images/graemlins/smirk.gif[/img] I know it might have to stay like that cos of calls to the server, but any ideas would be appreciated.
You only need the Window SetContext at the beginning section of code that stays on the same window then a new SetContext when your test window has changed to a new window. You can effectively get rid of the browser new page statements.
The recorder automatically puts those lines in the code each time you use it to record an action.
Yep you're right - I've been using Window SetContext only at start of section of code for other applications so thats why was finding it a pain using it so much on this web application.
Seems its using an AJAX framework and thats why it constantly appears to be refreshing everytime I update a field - which as I said, i find a bit annoying, especially as the Robot can't just quickly fly through entering all the data...and have to use Browser NewPage each time.
So folks, do you know how I might be able to get around the AJAX thing, its constant "refreshing" and having to use Window SetContext & Browser NewPage - or is it something I'll just have to live with ?