I have a form. I automated the task of filling up the form and clicking the submit button using Selenium WebDriver.
Now in the next page where the URL has changed, there is a confirmation message "Form Submitted Successfully". How do I verify this element in the new URL?
Thanks in advance!
webdriverto find a element that you know will be in that new url or you can get the current url likewebdriver.getCurrentUrl(), now you need to wait for the new page to be loaded.