You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
To work together with Selenium 3.141.59 you need at least HtmlUnitDriver 2.33.3.
But of course you it will be the best to use the latest HtmlUnitDriver version (at the moment 2.39.0).
To work together with Selenium 3.141.59 you need at least HtmlUnitDriver 2.33.3.
But of course you it will be the best to use the latest HtmlUnitDriver version (at the moment 2.39.0).
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: