Тёмный

Selenium Framework for Beginners 4 | How to run Selenium tests on Internet Explorer 

Automation Step by Step
Подписаться 534 тыс.
Просмотров 39 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@sharvarimehta2977
@sharvarimehta2977 3 года назад
Thankyou Sir. It worked exactly as expected!
@RaghavPal
@RaghavPal 3 года назад
You're welcome Sharvari
@Chatrapati_Yesubai_Maharani
@Chatrapati_Yesubai_Maharani 3 года назад
Raghav sir can u show us how to configure edge driver to run tests on Microsoft edge..i am getting some errors
@RaghavPal
@RaghavPal 3 года назад
Hi Shradha, I will plan a session on this
@Chatrapati_Yesubai_Maharani
@Chatrapati_Yesubai_Maharani 3 года назад
@@RaghavPal Thank you so much
@rotrose7531
@rotrose7531 5 лет назад
Thank you very much, it works perfectly after faithfully following your instructions.
@RaghavPal
@RaghavPal 5 лет назад
Glad to know this
@adriennecheng4728
@adriennecheng4728 4 года назад
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!
@RaghavPal
@RaghavPal 4 года назад
Hi Adrienne, try to get IE driver 32 bit
@adriennecheng4728
@adriennecheng4728 4 года назад
@@RaghavPal Thanks Raghav!! yep that worked! i downloaded the x64 one which was wrong:(
@ankitarane8855
@ankitarane8855 2 года назад
Raghav i was facing same issue, downloaded 32 bit one and it worked. Thanks Raghav and bless you💜
@TheMilikumari
@TheMilikumari 5 лет назад
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
@RaghavPal
@RaghavPal 5 лет назад
Hi Mili, try a diff ver like 74 of chromedriver
@TheMilikumari
@TheMilikumari 5 лет назад
@@RaghavPal Thanks Raghav it worked
@chesamirgevara
@chesamirgevara 3 года назад
Thank you
@RaghavPal
@RaghavPal 3 года назад
You're welcome
@hafidassaoui7504
@hafidassaoui7504 3 года назад
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
@RaghavPal
@RaghavPal 3 года назад
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
@nainsikumari6272
@nainsikumari6272 5 лет назад
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.
@RaghavPal
@RaghavPal 5 лет назад
Hi Nainsi, it will help if you explain and provide more details. This looks like specific to your system or environment.
@rotrose7531
@rotrose7531 4 года назад
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
@prateekjain2473
@prateekjain2473 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
@RaghavPal 3 года назад
Hi Prateek, this can be due to version mismatch, what is your Se ver. Can try changing
@prateekjain2473
@prateekjain2473 3 года назад
@@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
@RaghavPal
@RaghavPal 3 года назад
I will check online for this
@prateekjain2473
@prateekjain2473 3 года назад
@@RaghavPal Thank you 😊
@fatendebabi6094
@fatendebabi6094 3 года назад
Hi Raghav, It works on mac ? I don't find the web driver for Mac Thanks
@RaghavPal
@RaghavPal 3 года назад
Hi IE may not work on mac, as it does not support as far as I know
@animeshgiri8350
@animeshgiri8350 4 года назад
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.
@RaghavPal
@RaghavPal 4 года назад
Hi Animesh, you will now need to add browser driver exe and provide its path in the code. Check next videos
@DucNguyen-xn5bd
@DucNguyen-xn5bd 6 лет назад
Hi Raghav, how abt Microsoft Edge, is it the same with IE or we need new driver for MS Edge?
@RaghavPal
@RaghavPal 6 лет назад
Hi Duc, you can get microsoft edge driver developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
@amitsmart4u
@amitsmart4u 5 лет назад
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!!
@RaghavPal
@RaghavPal 5 лет назад
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
@amitsmart4u
@amitsmart4u 5 лет назад
@@RaghavPal Thank you so much sir, much appreciated. God bless you for the work you are doing!!
@RaghavPal
@RaghavPal 5 лет назад
Thanks Amit
@vtswamy6321
@vtswamy6321 Год назад
@@RaghavPal Correct
@creativepuree
@creativepuree 6 лет назад
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)
@RaghavPal
@RaghavPal 6 лет назад
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
@creativepuree
@creativepuree 6 лет назад
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.
@RaghavPal
@RaghavPal 6 лет назад
Playlist url - ru-vid.com/group/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
@gselby8107
@gselby8107 5 лет назад
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.
@RaghavPal
@RaghavPal 5 лет назад
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..
@gselby8107
@gselby8107 5 лет назад
@@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.
@ilavarasansriraman4140
@ilavarasansriraman4140 4 года назад
Bro is we can automate safari browser on windows 10 os?? Is that possible? Please share me the steps??
@RaghavPal
@RaghavPal 4 года назад
Can do with some agent. Not directly
@Abhishek-jt5xe
@Abhishek-jt5xe 5 лет назад
In my IE browser, "This is the initial start page for the WebDriver server. " message is being displayed. I had already disabled all security options.
@RaghavPal
@RaghavPal 5 лет назад
Hi Abhishek, this is an information message, which is okay. If the test is working then no worries on this
@Abhishek-jt5xe
@Abhishek-jt5xe 5 лет назад
@@RaghavPal No test is not working....
@RaghavPal
@RaghavPal 5 лет назад
Abhishek, do you get any error message or information on the console. Will need logs to check this
@harshalrajguru4029
@harshalrajguru4029 4 года назад
@@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. :)
@santoshsahu-lh5qb
@santoshsahu-lh5qb 3 года назад
@@harshalrajguru4029 yes this work for me thanks harshal
@nghiact3147
@nghiact3147 5 лет назад
Can you switch to new tab on IE browser?
@RaghavPal
@RaghavPal 5 лет назад
Yes Cao, stackoverflow.com/questions/22820527/how-to-open-new-tab-in-ie-using-selenium-java-and-open-a-url-in-that-tab-not#answer-22820595
@mandarrane
@mandarrane 4 года назад
Can you mention the driver in the pom.xml so that it is also downloaded
@RaghavPal
@RaghavPal 4 года назад
I will check this Mandar
@Deniz-ss1sv
@Deniz-ss1sv 3 года назад
:)
@johnronaldraviz4052
@johnronaldraviz4052 4 года назад
Skip lol!
@RaghavPal
@RaghavPal 4 года назад
No issues John, can find all here - automationstepbystep.com/
Далее
This is how Halo felt as a kid 🤣 (phelan.davies)
00:14
СОБАКА И ТРИ ТАБАЛАПКИ😱#shorts
00:24
Using Selenium with Edge in IE Mode
14:02
Просмотров 2,7 тыс.
Selenium with JUnit, Selenium WebDriver, Segment~1
29:10