OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Selenium Webdriver is detectable

  • Thread starter Thread starter Stevo
  • Start date Start date
S

Stevo

Guest
I read everywhere that it is not possible for websites to detect that a user is using a selenium webdriver... but why?

For example the webdriver plugin in firefox adds an 'webdriver attribute' to the <html> element. So the <html>... goes to <html webdriver="true">...

I am confused... why it is not possible to detect the webdriver?

I wrote a little Javascript to get the document.outerHTML... and there is the webdriver attribute! = detected!?

Here is my code I tested in Browser with Webdriver and without:

Code:
<html>
<head>
  <script type="text/javascript">
  <!--
    function showWindow(){
      javascript:(alert(document.documentElement.outerHTML));
    }
  //-->
  </script>
</head>
<body>
  <form>
    <input type="button" value="Show outerHTML" onclick="showWindow()">
  </form>
</body>
</html>

Please can somebody explain me why it is not possible to detect the Webdriver?

<p>I read everywhere that it is not possible for websites to detect that a user is using a selenium webdriver... but why?</p>

<p>For example the webdriver plugin in firefox adds an 'webdriver attribute' to the
<code><html></code> element. So the <code><html>...</code> goes to <code><html webdriver="true">...</code></p>

<p>I am confused... why it is not possible to detect the webdriver?</p>

<p>I wrote a little Javascript to get the document.outerHTML... and there is the webdriver attribute! = detected!?</p>

<p>Here is my code I tested in Browser with Webdriver and without:</p>

<pre><code><html>
<head>
<script type="text/javascript">
<!--
function showWindow(){
javascript:(alert(document.documentElement.outerHTML));
}
//-->
</script>
</head>
<body>
<form>
<input type="button" value="Show outerHTML" onclick="showWindow()">
</form>
</body>
</html>
</code></pre>

<p><strong>Please can somebody explain me why it is not possible to detect the Webdriver?</strong></p>
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top