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

navigator.webdriver is evaluated as false in Webkit browser #29446

Open
jennifer-shehane opened this issue Apr 30, 2024 · 0 comments
Open

navigator.webdriver is evaluated as false in Webkit browser #29446

jennifer-shehane opened this issue Apr 30, 2024 · 0 comments
Labels
browser: webkit Issue related to Webkit (Safari) browser experiment: webkit Issues when using experimentalWebkitSupport type: bug

Comments

@jennifer-shehane
Copy link
Member

Current behavior

navigator.webdriver is evaluated as false in Webkit browser

Deeper explanation of what this means

Desired behavior

Webkit should evaluate navigator.webdriver as true when run within Cypress. Today it does not. https://w3c.github.io/webdriver/#interface

Test code to reproduce

The test below will fail in Webkit when it should pass.

<html>
<body>
  <h1 id="content"></h1>
  <script>
    console.log(navigator.webdriver);
    var text = document.createTextNode(`navigator.webdriver is ${!!navigator.webdriver}`);
    document.getElementById("content").append(text);
  </script>
</body>
</html>
it('visit', () => {
  cy.visit('index.html')
  cy.get('#content').should('have.text', 'navigator.webdriver is true')
})

Cypress Version

13.8.2

Node version

18

Operating System

mac

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added experiment: webkit Issues when using experimentalWebkitSupport browser: webkit Issue related to Webkit (Safari) browser type: bug labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: webkit Issue related to Webkit (Safari) browser experiment: webkit Issues when using experimentalWebkitSupport type: bug
Projects
None yet
Development

No branches or pull requests

1 participant