How to click a href link using Selenium

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

I have a html href link

App Configuration

using Selenium I need

10条回答
  •  天涯浪人
    2020-12-09 10:40

    You can use this method:

    For the links if you use linkText(); it is more effective than the any other locator.

    driver.findElement(By.linkText("App Configuration")).click();
    

提交回复
热议问题