我想點擊一個元素在表中單擊表的元素元素的HTML代碼如下無法硒
<A onclick="return A_MENUS[0].onclick(4);" onmouseover=A_MENUS[0].onmouseover(4); onmousedown=A_MENUS[0].onmousedown(4); onmouseout=A_MENUS[0].onmouseout(4); id=e0_4o class=m0l1oout style="HEIGHT: 20px; WIDTH: 250px; POSITION: absolute; LEFT: 600px; Z-INDEX: 4; TOP: 98px; VISIBILITY: hidden" href="WebMenu.aspx"><DIV id=e0_4i class=m0l1iout>Start Proposal</DIV></A>
以下是屏幕短,點擊承保後,我不能點擊電機。代碼在一臺電腦上工作,但不能在另一臺電腦上工作。請幫幫我。
代碼爲波紋管
wait = new WebDriverWait(wDriver, 150);
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("home")));
wDriver.findElement(By.id("home")).click();
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("e0_5991o")));
wDriver.findElement(By.id("e0_5991o")).click();
customSleep(1000);
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("e0_6101o")));
wDriver.findElement(By.id("e0_6101o")).click();
customSleep(1000);
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("e0_6128o")));
wDriver.findElement(By.id("e0_6128o")).click();
您是否嘗試過最大化瀏覽器窗口? – alecxe