Showing posts with label verifyLocation command. Show all posts
Showing posts with label verifyLocation command. Show all posts

"verifyLocation" Command
Soometimes you need to check the URL of current selected window to perform some actions. In such cases, selenium has two commands to verify the absolute URL of the current selected page. "verifyLocation" and "assertLocation".

"verifyLocation" command will just verify your trageted URL with absolute URL of the current page and returns error message if match not found and will go for executing next command. In bellow given example, first "verifyLocation" will becomes pass but 2nd "verifyLocation" will be fail because trageted URL will not