How to click a href link using Selenium

前端 未结 10 1244
悲哀的现实
悲哀的现实 2020-12-09 09:48

I have a html href link

App Configuration

using Selenium I need

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 10:39

    Try to use Action class to reach the element

    Actions action = new Actions(driver);
    action.MoveToElement(driver.findElement(By.xpath("//a[text()='AppConfiguration']")));
    action.Perform();
    

提交回复
热议问题