First time here. I’ve got an you might be able to help with. Working on chrome , there’s a menu that’s toggled with a click. I need to be able to select list items. Here is the code for the menu.

 <button type="button" class=" dropdown- btn btn-default" data-="dropdown" title="None selected" aria-expanded="true"><span class="multiselect-selected-text">None selected</span> <b class="caret"></b></button>

class="multiselect-container dropdown-menu"

My attempts to interact with it through the following have failed.

new Select(driver.findElementByXPath("//button[@type='button']")).selectByVisibleText("TEST");

If you need any more information please ask, not familiar with what might be required.
Many thanks



Source link https://sqa.stackexchange.com/questions/34289/multi-select-dropdown-toggle-webdriver-issue

LEAVE A REPLY

Please enter your comment!
Please enter your name here