MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

Browser out of date warning. #307

Open prediator opened 6 years ago

prediator commented 6 years ago

I get this message when i open a url. I am trying to login to a site.

Your browser is out of date and not supported. We recommend you update your browser for a better online experience.

Settings settings = Settings.builder().quickRender(false).blockAds(true).logTrace(true).headless(false).javascript(true).saveAttachments(false).saveMedia(false).timezone(Timezone.AFRICA_ABIDJAN).userAgent(UserAgent.CHROME).build();

JBrowserDriver jb = new JBrowserDriver(settings);

I tested on firefoxdriver and i was able to login with my account.

prediator commented 6 years ago

I updated the selenium dependencies to 3.4.0 and it worked.

walterjwhite commented 6 years ago

I am consistently getting this error as well on certain websites. I enabled logging wire traffic and see that the underlying implementation, Apache Http Client, is sending Apache Http Client and my java version as the agent. I am certain that isn't helping matters. Is there any way to tell JBrowserDriver to send the user agent I specify for all requests instead of just the ones directly initiated by the browser?

User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_162)