I’m currently learning Selenium 1.8.0, and I’d like to test whether the current URL is what I want.
I know there’s a storeLocation function, but I’m not sure what else I need to do.
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
selenium.getLocation() will give you the current URL in the address bar. Since you said you are learning – It would be better you learn Selenium 2 rather than selenium 1.x versions. Reasons are mentioned here
Obvious reason to move from Selenium RC to Webdriver.?