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
No, there is no way to conceal that you are runing automated test.
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
For web authors :
navigator.webdriver
Defines a standard way for co-operating user agents to inform the document that it is controlled by WebDriver, for example so that alternate code paths can be triggered during automation.
The above mentioned implementation is based on a couple of Security Considerations as follows:
A user agent can rely on a command-line flag or a configuration option to test whether to enable WebDriver, or alternatively make the user agent initiate or confirm the connection through a privileged content document or control widget, in case the user agent does not directly implement the HTTP endpoints.
It is strongly suggested that user agents require users to take explicit action to enable WebDriver, and that WebDriver remains disabled in publicly consumed versions of the user agent.
It is also suggested that user agents make an effort to visually distinguish a user agent session that is under control of WebDriver from those used for normal browsing sessions. This can be done through a browser chrome element such as a door hanger, colorful decoration of the OS window, or some widget element that is prevalent in the window so that it easy to identify automation windows.
You can find a couple of detailed discussion in: