When i inspect the button I can see this:

```
<button type="button" class="wds-c-button--primary wds-c-button--small wds-c-button wds-u-hide--nav-width-down" role="button" data-nav-close="" data-testid="application-header-login-link">Log in</button>

```

I have tried finding the element with these commands but it does not work:

```
driver.findElement(By.xpath("//button[contains(text(),'Log in')]")).click();

```

```
driver.findElement(By.xpath("//button[@type='button' and text()='Log in']")).click();

```

I get an error in console:

```
Element could not be scrolled into view

```

Any ideas on why this is happening?
I even added a `Thread.sleep(10000)` before running these commands.