Reputation: 5657
I'm very confused on how to access the newly loaded page's DOM after I .click() the submit button on a page and am sent to another one.
Any ideas?
Thanks.
Upvotes: 1
Views: 429
Reputation: 316
Since you're being redirected to a new page, wouldn't you handle that page's DOM just like you normally would? In jQuery you would use:
And when the DOM has finished loading, you can manipulate it however you want.
Upvotes: 0
Reputation: 8166
The click() method should return an HtmlPage object with the new page:
HtmlPage newPage = myElement.click();
Upvotes: 1