webdriver is not able to click on a hyperlink in firefox

后端 未结 6 2095
不思量自难忘°
不思量自难忘° 2021-01-16 23:01
package testproject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.         


        
6条回答
  •  囚心锁ツ
    2021-01-16 23:57

    This should work,

    new WebDriverWait(driver,30).until(ExpectedConditions.visibilityOfElementLocated(By.linkText("Gmail"))).click();
    

提交回复
热议问题