| || |
How do I change URL of browser during testcase.
Can anyone tell me how to change the URL that the browser is pointing to during a testcase? I don't mean at the start of a testcase, but in the middle of it.
Here's my scenario: I have a testcase searches for a data item, then changes the data in a form, and I want to re-do the search and verify that the change persisted. Thanks.
Re: How do I change URL of browser during testcase.
Try Browser.Location.SetText() or Browser.Location.TypeKeys(). The TypeKeys() approach is the one used by the built-in framework -- the key sequence typically first selects all the current text in the Location field, then enters the new URL and types <Enter> to force the reload.
Take a look in browser.inc for some examples.