I want to select element from drop down list but in html they have used <img>
tag. How can I achieve my goal?
This is stuff from my code:
public void country() { driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); Select country1 = new Select(country); country1.selectByVisibleText("Canada");}
I am getting this error while running testNg test
org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "img"