Error message when I select COMPOSE button after logging into page

After logging into yahoo page with valid username and password and once I click COMPOSE why there is error message displayed as “NosuckElementfound” .

This is the code which I tried

driver=new FirefoxDriver();
// enter a valid email address
//enter password
// click on sign in button
// click on compose button
// click on attach files icon

How can we find the elements COMPOSE and ATTACH FILES options after logging into Yahoo page?
How can we work with the links on the page after we sign in to Yahoo ?

KG Train Asked on October 14, 2015 in Selenium WebDriver.
Add Comment
2 Answer(s)

You need to check the xpath of ‘Compose’ button first.

Try to click on Compose button by finding ID or by Class name or by CSS Selector. This will definitely serve the purpose.

BhavinR Train Answered on October 14, 2015.
Add Comment


Yes I got it I tried with invalid XPATH. Now it works.

KG Train Answered on October 14, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.