Hi Raghav, I am getting this error trying to open IE11: Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. I have turned off ""Enhanced Protected Mode" and set zoom to 100%, also added FEATURE_BFCACHE registry entry, still got the error, please advise! thanks!
hi, Raghav, i tried to use chrome driver version 75 and tried to run sample test but I can launch window bu unable to perform any action . I get this following error iI searched on google but no luck ( do i have to use older version of chrome driver? ] ChromeDriver 75.0.3770.140 (2d9f97485c7b07dc18a74666574f19176731995c-refs/branch-heads/3770@{#1155}) on port 49013 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. Aug 04, 2019 10:01:08 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C Exception in thread "main" org.openqa.selenium.WebDriverException: Unrecognized platform: windows nt
Hi i am beginner , i have an error while i past a new version of chrome driver on the folder , till it didn''t work for chrome i ve tried to overwrite it with a new version it s shows: Problems occurred copying the selected resources, thanks
Hi Hafid, you can check the version compatibility, this can help stackoverflow.com/questions/41133391/which-chromedriver-version-is-compatible-with-which-chrome-browser-version
Hi , I have unckecked all the security from ie settings ,still getting and exception "Failed to connect to localhost/0:0:0:0:0:0:0:1:19324" Please advise how to remove this exception.
I encountered the same error, and solved it based on the information of this page. stackoverflow.com/questions/49282494/java-net-connectexception-failed-to-connect-to-localhost-error-with-selenium-3
Sir, I am getting an error in IE browser While doing cross browser testing. Browser is opening but URL is not loading. Can you please help me here.Below Exception is coming. WebDriverException: Unable to parse remote response.
@@RaghavPal Sir issue is coming in IE while doing cross browser testing but without cross browser testing IE is working fine. IE version - 11.0.220 Driver Verson - *64_2.39.0
Hi Raghav Sir, I have thoroughly followed the steps mentioned here. I have IE 11 and I am using IDEDriver version 3.9, but still while running, I am getting the same error of thread exception. Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from selenium-release.storage.googleapis.com/index.html Kindly suggest.
Hi Raghav, We are giving the full path of the driver exe, later we are adding it to env variable. After all this, do we really need to copy the exe under eclipse driver folder?? I am just trying to understand why are we copying the exe inside eclipse and is it mandatory/necessary? Thank you!!
Hi Amit, it's not necessary to copy it in the project folder in eclipse. The advantage here is in case you take the project to another system. You will not have to change the path
Hi Raghav, I am facing the below issue. The IE browser opens but site doesn't load and test fails with this e I looked up online and found this issue to be common but there is no proper solution for this. Let me know if you have the fix for this. Thanks org.openqa.selenium.remote.SessionNotFoundException: session null does not exist (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 9 milliseconds Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' System info: host: '', ip: '', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_161' Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{capabilities={acceptInsecureCerts=false, browserVersion=11, se:ieOptions={nativeEvents=true, browserAttachTimeout=0, ie.ensureCleanSession=false, elementScrollBehavior=0, enablePersistentHover=true, ie.browserCommandLineSwitches=, ie.forceCreateProcessApi=false, requireWindowFocus=false, initialBrowserUrl=localhost:15999/, ignoreZoomSetting=false, ie.fileUploadDialogTimeout=3000, ignoreProtectedModeSettings=false}, browserName=internet explorer, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss, platformName=windows, setWindowRect=true}, sessionId=cef214d5-d149-48b1-9b94-8d5c4a49d57f, platform=ANY}] Session ID: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Hi, I know working on IE with Selenium is not very smooth as yet. You might have to set some capabilities, If IE is not critical you can continue on other browsers
Yes, It looks like we have to do some mix and match of IE driver version. Btw very helpful tutorial you got there. Looking forward for more tutorials. Thank you.
Hi. I've been using Selenium for almost 2 years in both Chrome and IE. Lately, IE has been a real problem finding elements. It seems it can only see Xpath. Also in Chrome, it is unable to proceed further after clicking a print button that opens a "pop-up" of sorts, and then of course cannot close it. Any thoughts what might be the source of these issues/ Thanks so much.
Hi Glenn, IE I know can be painful, Idea here will be to create object properties, locators in such a way that can work on all browsers. So ideally we keep one browser for reference e.g. chrome and create our scripts and then try to run on other browsers. In case of failure we investigate the object and then use locators that can work on other browsers as well. It may include creating custom xpath etc. Another way can be, if your locator fails on another browser, we find out the locator that can will work on that browser & then we can create a if condition that if the browser is ie then use this locator etc..
@@RaghavPal Not a bad idea. I have the browser type in a config file so I cold set an "if" to check for IE and then use a Dictionary to initiate element definitions based on the browser. Thanks. That helps a lot.
@@Abhishek-jt5xe Best way to fix this would be to actually go to the IE browser and set the zoom level the default value, 100%, by going to Settings -> Zoom. :)