import org.openqa.*; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Demo2 { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe"); WebDriver driver=new ChromeDriver(); String url="https://quora.com"; driver.get(url); WebElement ele1=driver.findElement(By.className("google_button_text")); ele1.click(); //WebElement e1=driver.findElement((By.xpath("//*[@id='identifierId']"))); //e1.sendKeys("Welcome"); WebElement email1=driver.findElement(By.name("identifier")); email1.sendKeys("fggffgfd"); WebElement next1=driver.findElement(By.className("RveJvd snByac")); //whsOnd zHQkBf next1.click(); WebElement password=driver.findElement(By.className("whsOnd zHQkBf")); password.click(); password.sendKeys("Sffgdffdf3"); WebElement next2=driver.findElement(By.className("RveJvd snByac")); //whsOnd zHQkBf next2.click(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)