I'm using selenium with Tor and I'd like to select an item from a dropdown list by the visible text or by part of text. The class Select doesn't work cause of a bug in firefox
So this is my code:
Select dropdown = new Select(driver.findElement(By.id("serverLogin"))); //Selects my dropdown
dropdown.selectByVisibleText(server); //Selects the server
How can I do it using javascript executor?