| || |
Help with a popup menu on a specific page
I'm brushing up on Selenium Webdriver/Java using my last.fm page as my test page
If you look at the page, under Recently Listened Tracks, there is a table
If you mouse over the a row, an icon appears on the right that you can click on which pops up a menu
Add to my library
Add to playlist
Is Selenium capable of popping up that menu and selecting an item from it?
Kinda stuck so I figure I'd ask instead of spinning my wheels.
Re: Help with a popup menu on a specific page
yes. You can do it by this way.
WebElement element = driver.findElement(By.ClassName("mAddToLibrary"))
new Select(element).selectByVisibleText("Add To My Library")