Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlUnit: Find driver by classname doesnt work with HtmlUnit but works with Chrome #91

Open
danielkp1234 opened this issue Aug 13, 2020 · 0 comments

Comments

@danielkp1234
Copy link

danielkp1234 commented Aug 13, 2020

So i am having another problem trying to click a button with htmlunit driver it works with the chrome driver here is the code i am trying to use
` driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("https://frostruphave.viggo.dk/Basic/Account/Login");

System.out.println(driver.getPageSource());

WebDriverWait wait = new WebDriverWait(driver, 8);

wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("unic")));

driver.findElement(By.className("unic")).click();`

The line that causes the problem is wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("unic")));

Here is the Stacktrace:
https://pastebin.com/5hd4593C

It has been tested working with the ChromeDriver message me if you need more info :) @rbri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant