【发布时间】:2021-11-20 18:53:04
【问题描述】:
this is the example from our application
我正在尝试此代码但无法正常工作
WebElement ele=driver.findElement(By.xpath("//a[@title='Menu for Distribution']"));
Actions act=new Actions(driver);
act.moveToElement(ele).perform();
Thread.sleep(3000);
for (int i=3; i<=10; i++)
{
System.out.println(i);
ele1=driver.findElement(By.xpath("//a[@target='frame_main'])[i]"));
ele1.click();
}
【问题讨论】:
-
你能分享一个指向那个页面的链接和你所有的相关代码吗?
-
你能解释一下你想要达到的目标吗?
标签: selenium-webdriver automation automated-tests