Skip to content

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

@danielkp1234

Description

@danielkp1234

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions