I am writing a test in Java and somehow Selenium cannot find the element with name 0108:
<div id="appmngTabs">
<ul id="menu">
<li name="0101">
<li name="0102">
<li name="0103">
<li name="0104">
<li name="0105">
<li name="0106" class="activ">
<li name="0107">
<li name="0108">
<a onfocus="disableFocus()" onclick="focusTab('0108')" target="content" href="applMenu?mode=cnt&menu=EOB2B&uni=0108" name="0108">Interfacing</a>
</li>
<li name="0109">
<li name="0199">
I don't see anything special in this HTML code, but Selenium cannot click on it. What I have tried:
driver.findElement(By.name("0108")).click();
driver.findElement(By.cssSelector("[name=0108]")).click();
driver.findElement(By.cssSelector("li[name=0108]")).click();
I have tried combinations like this:
driver.findElement(By.id("menu").name("0108")).click();
Still nothing. Am I doing something wrong?
UPDATE: frame:
<frame id="menu" noresize="" marginheight="0" marginwidth="0" scrolling="no" frameborder="0" name="menu" src="applMenu?menu=EOB2B">
Aucun commentaire:
Enregistrer un commentaire