I am trying to run a selenium script for facebook create new account button. But am not able to click the create new account button via selenium script. Here is the code I am using below. I am getting error of:
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element:
But is neither retrivable by class or ID. Please suggest!!!!
Code:
WebDriver driver= new ChromeDriver();
driver.get("https://www.facebook.com/");
WebElement sign_in= driver.findElement(By.xpath("//a[@id='u_0_0_DX']"));
sign_in.click();
driver.close();
I am trying to run a selenium script for facebook new user signup but am not able to click the singup page button via selenium script.
Check the code below if you want to click this button: