2

Running Firefox on Selenium requires the Geckodriver, since the Gecko Engine isn't really compatible with the JSON Wire Protocol. So the Geckodriver is running a HTTP-Server by serving all the commands between Selenium and the browser by translating with Marionette. Can a Website actually tell, that the current Browser is controlled by Marionette? I've seen that you can access a "Marionette Page" by using localhost and the Marionette Port in config, when Firefox is automated. Also Firefox shows that robot, that tells the user, the current Browser is automated. So some kind of automation detection is build in, but can it be accessed?

Edit: Yeah it's true, that different Browsers expose different things, but the javascript detection doesn't work anymore. It was able detect Selenium RC, because to work it had to inject some Javascript Code into the Browser. Since Selenium 2.0, the Webdriver communicates directly with the Browser, so simple Javascript-Variable-Detection won't work. Also i found and explained some of those exposes, but can a website actually access them somehow? As another difference of exposing: Chrome sets the navigator.webdriver attribute to true, but firefox doesn't.

Lukas S
  • 315
  • 1
  • 3
  • 15
  • Yes the link is talking about Chromedriver and this question is talking about Firefox but if you look at the accepted answer, the answer is yes. See this quote: `...Of course, all of this depends on which browser you are on. All the different browsers expose different things.` – JeffC Jan 29 '18 at 20:17
  • @JeffC I think you mis-understood the question. OP is asking about _Can a Website actually tell, that the current Browser is controlled by Marionette?_ which is based on _W3C_ . The dup you have referred is about _ChromeDriver_ and _Chrome_ which is based on _OSS_ . Definitely the specs are different. Not a duplicate. – undetected Selenium Jan 30 '18 at 19:59
  • @DebanjanB I didn't misunderstand and I specifically added my comment above to head off people that would state what you did. Read my comment above. I quoted directly from the answer where it refers to browsers in general and not just Chrome. – JeffC Jan 30 '18 at 20:51
  • @JeffC You are ignoring a simple fact W3C Specs & OSS Specs are different. This question is about Marionette/W3C which have no relation with Chrome/OSS. How can it be a dup? – undetected Selenium Jan 30 '18 at 20:58
  • @DebanjanB The answer to the question is Yes. It doesn't matter what the spec is, it doesn't matter what the browser is. Read the answer I linked it explains in detail that each browser exposes different things that a website can detect. You dup python questions to Java answers and you somehow can't understand how this is a dup?!? – JeffC Jan 30 '18 at 21:52

0 Answers0