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
@Mukeshotwani2 жыл бұрын
Glad to hear that Hisham. Thank you.
@venkateshsivadurga64565 жыл бұрын
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.
@Mukeshotwani5 жыл бұрын
Hey Venkatesh sure I will try to record video on qmetry as well.
@nrravitej24985 жыл бұрын
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.
@Mukeshotwani5 жыл бұрын
Hi Tej, Here Browser session is one only handle changes but earlier we used to have different session for each browser.
@vijayapriyapalanikumar62133 жыл бұрын
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
@atom3 жыл бұрын
Hi, thank you for the video. May i know if it is possible to hadnel multiple tabs. in parallel within one session using selenium?
@swanandmahurkar70825 жыл бұрын
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.
@Mukeshotwani5 жыл бұрын
true Swanand, it make sense to use newWindow method now. Thank you.
@mayvid27932 жыл бұрын
Can we use multiprocessing and work with multiple tabs at same time?
@Mukeshotwani2 жыл бұрын
Yes We can
@gyanasahoosahoo40205 жыл бұрын
Hi Mukesh, Plz tell me, I'm getting this error. org.openqa.selenium.UnsupportedCommandException:
@Mukeshotwani5 жыл бұрын
Hi Sahoo ji, use latest chrome driver depends on your chrome version sites.google.com/a/chromium.org/chromedriver/downloads I used 77 version
@gyanasahoosahoo40205 жыл бұрын
thanks@@Mukeshotwani sir
@hemanarasimhareddy36315 жыл бұрын
Hi mukesh ji can we switch to parent window without closing the child tab
@Mukeshotwani5 жыл бұрын
Yes Hema you can do that in Selenium 4
@KashanKhantunio3 жыл бұрын
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?
@rakeshkumarmishra14985 жыл бұрын
Hi Mukesh, Thanks for sharing this topic however We were able to do in selenium 3 itself using getHandlers too.
@kdkvai3 жыл бұрын
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
@nilimapatil28073 жыл бұрын
Hii mukesh, I m updating selenium 3 to 4 and implement the code its not working for me please help
@Mukeshotwani3 жыл бұрын
Hi Nilima, what is not working? Can you explain me in details?
@nilimapatil28073 жыл бұрын
@@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
@nilimapatil28073 жыл бұрын
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.
@subratasahoo30685 жыл бұрын
Can we use Selenium 4 now, is it stable ? Please comment
@Mukeshotwani5 жыл бұрын
Hi Subrata, there are some open issue in Selenium 4. I would recommend to use Selenium 3 for more stability.
@subratasahoo30685 жыл бұрын
@@Mukeshotwani ok
@JitendraKumar-lr3vq5 жыл бұрын
After adding selenium 4 dependency at my pom.xml - i am experiencing error for my system.hetProperty and desired capabilities for opening chrome browser..
@Mukeshotwani5 жыл бұрын
Hi Jitendra, yes there are few changes that u need to adopt for Selenium 4. For desired capability use OptionsClass for new versions.
@Mukeshotwani5 жыл бұрын
kzbin.info/www/bejne/kGTYZ3icj7CHfK8
@JitendraKumar-lr3vq5 жыл бұрын
@@Mukeshotwani thanks a lot mukesh..it helped me in solving my issue..
@JitendraKumar-lr3vq5 жыл бұрын
@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));
@Mukeshotwani5 жыл бұрын
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
@darshilshah17355 жыл бұрын
amazing tutorial. Please provide the codebase on your github or the website. :)
@Mukeshotwani4 жыл бұрын
Hi Darshil, sure I will upload.
@kiran4205 жыл бұрын
How to scroll down a page in selenium
@Mukeshotwani5 жыл бұрын
Hi Kiran here is the link kzbin.info/www/bejne/epaxm3x8dsakiMU
@JitendraKumar-lr3vq5 жыл бұрын
please use javascriptexecutor interface ..it wil solve your question..
@atom3 жыл бұрын
Hi, thank you for the video. May i know if it is possible to hadnel multiple tabs. in parallel within one session using selenium?