javaseleniumselenium-webdriverwebdriverwebdriver-w3c-spec

Is there a way to use Selenium WebDriver without informing the document that it is controlled by WebDriver?


I'm automating an Web page who call a CAPTCHA to validate the login, but I noticed that this page only request this CAPTCHA when I'm using my automatized test code, when I do it manually it don't request. I asked to developer team to disable it on the QA environment, but it's not possible by a security code.

I need to know if there is a way to don't say to browser that I'm using automated test on this page.

Can you help me, please?


Solution

  • No, there is no way to conceal that you are runing automated test.

    WebDriver Interface

    When using the WebDriver interface the webdriver-active flag is set to true as the user agent is under remote control. It is initially false.

    WebIDL

    Navigator includes NavigatorAutomationInformation;
    

    Note that the NavigatorAutomationInformation interface should not be exposed on WorkerNavigator.

    WebIDL

    interface mixin NavigatorAutomationInformation {
        readonly attribute boolean webdriver;
    };
    

    webdriver

    Example

    The above mentioned implementation is based on a couple of Security Considerations as follows:


    Reference

    You can find a couple of detailed discussion in: