0
ログインするには、セレンプログラムを作成しています。ソースコードを使用してユーザー名を指定して、次のボタンをクリックします。selenium_login to gmail_スレッド「main」のエラー例外
package com.core.selenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Gmaildemo {
public static void main(String args[]) {
System.setProperty("webdriver.chrome.driver", "D:\\REKHA\\SOFTWARES\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.gmail.com");
driver.findElement(By.name("identifier")).sendKeys("[email protected]");
driver.findElement(By.className("RveJvd snByac")).click();
}
}
以下のエラーが発生します。無効なセレクタ:スレッド「メイン」org.openqa.selenium.InvalidSelectorExceptionで
例外化合物クラス名はerror.Itが次ボタンをrecongniseすることができません下に取得
を許可されていません。
ありがとうございました。 – Rekha
@Rekhaあなたはこの回答にマークすることができます –