![](/img/trans.png)
[英]How to locate the element by href attribute using Selenium through Java
[英]How to locate and click on a link having javascript within the href attribute through selenium java
根据您共享的HTML ,单击带有AD04550的文本元素,您需要诱使WebDriverWait使所需的元素可单击,并且可以使用以下解决方案:
linkText
:
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.linkText("AD04550"))).click();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.