html snippet:
<div id="isc_PT" class="selectItemText" tabindex="5637" style="width:123px;height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" $9a="$9d" $89="isc_SelectItem_8" aria-expanded="false"></div>
If I select class I have 3 matching nodes. How can I handle that?
I have tried with
//div[contains(@id,'isc_PT')]
WebElement element=driver.findElement(By.xpath("//div[contains(@id,'isc_FX')]"));
Select se=new Select(element);
se.selectByVisibleText("MDialog");