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:
<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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…