Quality Testing

Quality is delighting customers

How to print mouseover text in note page using Selenium Webdriver?

How to print mouseover text in note page using Selenium Webdriver?

Can you please share the code.

Views: 301

Reply to This

Replies to This Discussion

Hi madhuri,,

below script is used for To print mouseover menu buttons text 

driver.manage().window().maximize(); //to maximize the browser.


Actions myMouse = new Actions(driver);
WebElement Participants = driver.findElement(By.xpath("//div[@id='cp_header_wrapper']/div[2]/ul/li[2]/a" ));
myMouse.moveToElement(Participants).build().perform(); //participants link( here participants is main menu button)
System.out.println("Paricipants title is mouse hovered");

this will help full 2 u :-)

I didn't get the question exactly, what is the meaning of mouseover text? is this "alt text"? or general button, menu text?

Can you please keep an image for better understanding?

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

¬© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service