New Feature of Selenium 4-How to Work with Multiple Tabs in Selenium

  Рет қаралды 18,805

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 51
@abdullahalhisham5562
@abdullahalhisham5562 2 жыл бұрын
Very useful demo for handling tabs/windows in Selenium 4. I was stuck in my code and it showed me the way, Thanks a lot Mukesh ji
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Glad to hear that Hisham. Thank you.
@venkateshsivadurga6456
@venkateshsivadurga6456 5 жыл бұрын
Hi Mukesh thanks for the video..recently I had gone through a reporting tool name qmetry..it's pretty good. It will help most of us in reporting.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hey Venkatesh sure I will try to record video on qmetry as well.
@nrravitej2498
@nrravitej2498 5 жыл бұрын
Hi Mukesh, thanks for the video, this seems to be very similar to the older version , where , we would use the getHandlers() to get set of all handlers from all opened windows [some times tabs , some times windows ] , but, in latest version they have separate methods to switch to tab or window.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Tej, Here Browser session is one only handle changes but earlier we used to have different session for each browser.
@vijayapriyapalanikumar6213
@vijayapriyapalanikumar6213 3 жыл бұрын
I have one doubt, the moment we used get window handle ,there is another different sessions are created .but you told new window() - will work only on one session, then how it's meet the advantage of handling window in single session, please help me to understand
@atom
@atom 3 жыл бұрын
Hi, thank you for the video. May i know if it is possible to hadnel multiple tabs. in parallel within one session using selenium?
@swanandmahurkar7082
@swanandmahurkar7082 5 жыл бұрын
Most usefull thing about this video is return type of newWindow() is WebDriver instance. Now,we can play with it as WebDriver names are diffrent,earlier it was confusing.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
true Swanand, it make sense to use newWindow method now. Thank you.
@mayvid2793
@mayvid2793 2 жыл бұрын
Can we use multiprocessing and work with multiple tabs at same time?
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Yes We can
@gyanasahoosahoo4020
@gyanasahoosahoo4020 5 жыл бұрын
Hi Mukesh, Plz tell me, I'm getting this error. org.openqa.selenium.UnsupportedCommandException:
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Sahoo ji, use latest chrome driver depends on your chrome version sites.google.com/a/chromium.org/chromedriver/downloads I used 77 version
@gyanasahoosahoo4020
@gyanasahoosahoo4020 5 жыл бұрын
thanks@@Mukeshotwani sir
@hemanarasimhareddy3631
@hemanarasimhareddy3631 5 жыл бұрын
Hi mukesh ji can we switch to parent window without closing the child tab
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Yes Hema you can do that in Selenium 4
@KashanKhantunio
@KashanKhantunio 3 жыл бұрын
Kya aisa ho sakta h. 10 Tabs group ko ek hi Tab se control kar sakte hain? FOr example: main page pe main kuch search karun to sub Tab groups pe search result ajaye, phr main main page pe koi link open karun to sub group Tab pe wahi link open hojaye. Kya aisa ho sakta hai?
@rakeshkumarmishra1498
@rakeshkumarmishra1498 5 жыл бұрын
Hi Mukesh, Thanks for sharing this topic however We were able to do in selenium 3 itself using getHandlers too.
@kdkvai
@kdkvai 3 жыл бұрын
Correct, I was wondering, what's the purpose of this feature? I do not see value in this. There might be something which I am missing here
@nilimapatil2807
@nilimapatil2807 3 жыл бұрын
Hii mukesh, I m updating selenium 3 to 4 and implement the code its not working for me please help
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Nilima, what is not working? Can you explain me in details?
@nilimapatil2807
@nilimapatil2807 3 жыл бұрын
@@Mukeshotwani When I run the script then getting "java.lang.NoSuchMethodError: org.openqa.selenium.WebDriver$TargetLocator.newWindow(Lorg/openqa/selenium/WindowType;)Lorg/openqa/selenium/WebDriver; " this error
@nilimapatil2807
@nilimapatil2807 3 жыл бұрын
Actually, my scenario is I copied the reference link from my site and wants to open in a new window and set focus on the new window after do my work on the new window get back to my site again, Please help me I spent most of my time to find a solution and yet I have not any solution.
@subratasahoo3068
@subratasahoo3068 5 жыл бұрын
Can we use Selenium 4 now, is it stable ? Please comment
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Subrata, there are some open issue in Selenium 4. I would recommend to use Selenium 3 for more stability.
@subratasahoo3068
@subratasahoo3068 5 жыл бұрын
@@Mukeshotwani ok
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
After adding selenium 4 dependency at my pom.xml - i am experiencing error for my system.hetProperty and desired capabilities for opening chrome browser..
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Jitendra, yes there are few changes that u need to adopt for Selenium 4. For desired capability use OptionsClass for new versions.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
kzbin.info/www/bejne/kGTYZ3icj7CHfK8
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
@@Mukeshotwani thanks a lot mukesh..it helped me in solving my issue..
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
@Mukesh otwani - hi mukesh is there any change in WebDriverwait method ..explicit wait ..after adding selenium 4 - my WebDriverWait method is showing error - WebDriverWait wait = new WebDriverWait(driver, 20); wait.until(ExpectedConditions.visibilityOfElementLocated(byLocator));
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
use WebDriverWait wait=new WebDriverWait(driver, Duration.ofSeconds(20)); Duration class you can import from import java.time.Duration; try and let me know. If issue still persist then try adding below dependency mvnrepository.com/artifact/com.google.guava/guava use 19.0 version
@darshilshah1735
@darshilshah1735 5 жыл бұрын
amazing tutorial. Please provide the codebase on your github or the website. :)
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Darshil, sure I will upload.
@kiran420
@kiran420 5 жыл бұрын
How to scroll down a page in selenium
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Kiran here is the link kzbin.info/www/bejne/epaxm3x8dsakiMU
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
please use javascriptexecutor interface ..it wil solve your question..
@atom
@atom 3 жыл бұрын
Hi, thank you for the video. May i know if it is possible to hadnel multiple tabs. in parallel within one session using selenium?
New Locator in Selenium 4- Relative Locator in Selenium
21:34
Mukesh otwani
Рет қаралды 10 М.
Selenium WebDriver Tutorial #25 - How to Handle Multiple Windows in Selenium
20:29
Software Testing Mentor
Рет қаралды 55 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 12 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 61 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,6 МЛН
How to handle window pop-ups, multiple Windows, multiple tabs in Selenium
28:14
Automation Hub Sarthak
Рет қаралды 2,3 М.
Selenium Webdriver Hierarchy In Interview | Automation Interview
17:26
How to Handle Multiple Windows or Tabs in Selenium Webdriver
25:40
Mukesh otwani
Рет қаралды 171 М.
How to Handle Multiple Windows in Selenium WebDriver
22:46
H Y R Tutorials
Рет қаралды 88 М.
How To Click On Multiple Links And Open In Separate Tabs With Selenium Webdriver
19:02
Teach Yourself Test Automation
Рет қаралды 10 М.
How to open a new blank Tab or Window - Selenium - 4 new feature
15:54
Naveen AutomationLabs
Рет қаралды 31 М.
How to Handle Dropdown in Selenium webdriver
31:43
Mukesh otwani
Рет қаралды 204 М.
Selenium 4 Grid Tutorial with examples - Parallel execution in Remote Machines
1:05:17
Cross Browser Testing In Selenium Webdriver Using TestNG Parameters
24:31
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН