Could you kindly have a look at tell me why i cannot locate certain class that appears after i toggled the button.
- click on toggle button and the sign up button should be enabled which it is.
- then trying to locate the class associated with that button and click on it and it says it cannot locate it.
chromeDriver.findElement(By.xpath("//input[@name='email']")).sendKeys("test@test.com");
chromeDriver.findElement(By.xpath("//input[@name='password']")).sendKeys("test");
chromeDriver.findElement(By.xpath("//div[@class='button button-primary button-disabled']"));
chromeDriver.findElements(By.xpath("//div[@class='sign-up-row']")).get(1).click();
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[@class='button button-primary']")));
or
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='button button-primary']"))).click();
or it does locate the class but element not interactble
chromeDriver.findElement(By.xpath("//div[@class='button button-primary']"));