Using selenium (server using eclipse), I need to locate a link on a webpage e.g. this is link and then click on the link. What would be the best approach to do so – thanks in advance for any useful suggestions.
Edit: The link itself is not static
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.
I was able to simply use the following:
selenium.click(“link=log in”); //where “log in” is the text for the link