How do you know how to identify the element? There can be multiple text "Submit" on the page, etc. Is there any universal way to find it? As I understand, you want to navigate through some pages which are not yours.
I think the only reliable way to navigate to desired place is by URL. The element should either have an argument
id
or be marked with the
anchor element
a
with the unique attribute
name
. For example, let's assume you have a Web page served under the URL
http://www.myDomain.org/myPage.html
with the button, optionally marked with a anchor.
<a name="scrollHere">
<button id="here" >Submit</button>
So, to navigate to the button based on anchor, use the URL
http:
If the anchor is not present but the button has the attribute
name
you can use it as well:
http:
—SA