-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML Unit driver is always defaulting to IE8 #86
Comments
To work together with Selenium 3.141.59 you need at least HtmlUnitDriver 2.33.3. Have a look at https://github.com/SeleniumHQ/htmlunit-driver/releases for more. |
Hey rbri, As per your suggestion, i updated my POM to 2.39.0 but I still default to IE8 . I am not sure If I am doing something wrong but to replicate this i opened the website using IE8 emulation and I am getting the same error as before. Sharing Image for your reference. Additionally sharing the Url for you to confirm if this issue persists on your end when you open the URL through HtmlUnitDriver. |
Sorry, now i got your point. In your case i guess HtmlUnit & the Driver are doing the right thing but the page has some kind of browser checking. This is usually done based on some js feature checks. Will have a look if i can find the reason for this. |
Hi so irrespective of me mentioning the browser version upon creating a HtmlDriver instance the driver is always defaulting to IE8
My Pom File
`
4.0.0
`
My Test Case
`@Test
public void testLoginCorrectCredentialsCorrect() throws Exception {
My Imports:
import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.WebClient;
The output I get from page source where I verify that IE8 was called(obtained by using the getpagesource function)
If you notice in this output that I have shared IE8 is the browser that is being called. I opened IE Edge and emulated to see that my site does indeed throw the above error message in IE8 only. Would someone have a look at it and let me know how i can go about fixing this.
The text was updated successfully, but these errors were encountered: