<input>
유형을 클릭하고 싶습니다. 아래에 언급 된 코드가 있습니다.셀레늄 WebDriver에서 <input type = "text">을 클릭하는 방법
<div class="gwt-TabBarItem" tabindex="0" role="tab">
<div class="gwt-TabBarItem" tabindex="0" role="tab">
<input type="text" tabindex="-1" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
<div class="gwt-Label" style="white-space: nowrap;">Explore by Research Topic </div>
</div>
은 내가 SendKeys 매크로 등을 클릭 WebElement 클릭, 자바 스크립트 클릭,
등의 가능한 모든 것을 시도 <input type="text" ....>
을 클릭합니다 그러나 그것은 나를 위해 작동하지 않습니다. 누구에게도이 문제에 대한 해결책이 있습니까? 사전
위에서 언급 한 방법을 시도 할 때 어떤 오류나 예외가 표시됩니까? 무슨 일이 일어나기를 기대합니까? –
한가지 더 관찰했습니다. \t \t \t System.out.println (\t driver.findElement (.xpath ("// div [@ class = 'gwt-TabBarItem']")). isDisplayed())); true를주는 동안 \t \t \t System.out.println (\t driver.findElement (.xpath ("gwt-TabBarItem '/ input")). isDisplayed()). 허위 제공 – OPTIMUS
귀하의 ''은 어리석게도 작습니다 (widht와 height는 1px). 나는이 크기로 클릭 할 수 없다고 생각한다. – singe3