Session 28 - Selenium with Java | WebDriver Methods | Browser & Navigation Commands |2024 New series

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025
  • #java#selenium#webdriver
    00:08 WebDriver navigational commands
    03:56 Difference between driver.get() and driver.navigate().to() methods
    11:48 Difference between passing URL in string format and URL object format
    14:50 Difference between navigate.to method and get method in Selenium with Java
    21:13 WebDriver browser navigation commands
    24:53 Browser navigation commands
    31:40 Capturing and switching between browser windows in Selenium with Java
    35:14 Converting Set collection to List collection for easy ID extraction
    42:02 Capturing window IDs for switching between browser windows
    45:18 Identifying and switching between multiple browser windows
    51:43 Managing browser windows in Selenium with Java
    55:33 Automating closing specific browser windows based on conditions
    1:01:41 Understanding how to switch between multiple browser windows and capture the title.
    1:04:44 Assignment on WebDriver Methods and Browser & Navigation Commands
    #########################
    Udemy Courses:
    #########################
    Manual Testing+Agile with Jira Tool
    ************************************
    ► shorturl.at/xNXZ4
    Selenium with Java+Cucumber
    ********************************
    ► shorturl.at/aIKMW
    Selenium with Python & PyTest
    ********************************
    ► shorturl.at/ELW09
    Selenium with python using Robot framework
    ****************************************
    ► shorturl.at/bcDPZ
    API Testing(Postman, RestAssured & SoapUI)
    ***
    ► shorturl.at/uAWY7
    Web & API Automation using Cypress with Javascript
    ***
    ► rb.gy/4uum2n
    Playwright with Javascript
    ***
    ► shorturl.at/gALZ1
    Jmeter-Performance Testing
    ***
    ► rb.gy/ocj7r2
    SDET Essencials(Full Stack QA)
    ***
    ► rb.gy/hlnf2v
    Appium-Mobile Automation Testing
    ***
    ► rb.gy/wmzv64
    Java Collections
    ***
    ► bit.ly/3S66ezE
    Python Programming
    ***
    ► urlis.net/gdsf...
    Cucumber BDD Framework
    ***
    ► bit.ly/3F7d69r
    Protractor with Javascript
    ***
    ► urlis.net/4udd...
    ####################################
    RUclips Playlists:
    ####################################
    Manual Testing & Agile
    ***
    ► bit.ly/3ujvaYa
    ► bit.ly/3OYzxQj
    SQL
    ***
    ► bit.ly/3R6XjeG
    ► bit.ly/3nE0a1s
    ► bit.ly/3IeKuuJ
    linux & Shell Scripting
    ***
    ► bit.ly/3up1Z6a
    ► bit.ly/3nzvGxx
    Java
    ***
    ► bit.ly/3R9QfOs
    ► bit.ly/3AoRMKM
    ► bit.ly/3IbTTDn
    ► bit.ly/3ybXInv
    ► bit.ly/3yCoHdw
    Selenium With Java+Cucumber
    ***
    ► bit.ly/3P2FMm4
    ► bit.ly/3yhiIt4
    ► bit.ly/3uokzet
    ► bit.ly/3a7XIND
    ► bit.ly/3umN2S9
    ► bit.ly/3aar7GW
    ► bit.ly/3y9kD2S
    ► bit.ly/3uhLskn
    Python
    ***
    ► bit.ly/3agNgU0
    ► bit.ly/3NJNnoy
    ► bit.ly/2CTQ4mR
    ► bit.ly/3OIYWh1
    Selenium With Python,Pytest&Behave
    ***
    ► bit.ly/3OHHoC9
    ► bit.ly/3IeNLdv
    ► bit.ly/2J4tPeT
    ► bit.ly/3ydSkAq
    Selenium With Python Using Robert Framework
    (Web&API Testing)
    ***
    ► bit.ly/3nUvlpr
    ► bit.ly/3nUvE3z
    API Testing (Postman,SoapUi,&Rest Assured)
    ***
    ► bit.ly/3OXacWY
    ► bit.ly/3yh0UhE
    ► bit.ly/3nC9DWQ
    ► bit.ly/3yGfhNS
    ► bit.ly/3OJa11H
    ► bit.ly/3P2slCC
    Mobile App Testing Appium
    ***
    ► bit.ly/3Al49HG
    Performance Testing Jmeter
    ***
    ► bit.ly/3nz4fE7
    Maven,Jenkins,Git,Github,CI/CD
    ***
    ► bit.ly/3P16HPj
    ► bit.ly/3yhlUVA
    ► bit.ly/3afYfwT
    ► bit.ly/3yGzweG
    ► bit.ly/3yF73Ws
    ► bit.ly/3NCOmH7
    SQL,DB Testing&ETL,Bigdata
    ***
    ► bit.ly/3NKOcNY
    ► bit.ly/3OVpDyI
    ► bit.ly/3NEvUy0
    ► bit.ly/3IryxlT
    ► bit.ly/3RkWBLh
    JavaScript Based Automation Tools
    ***
    ► bit.ly/3nUx51X
    ► bit.ly/3AqI6Q0
    ► bit.ly/3yeurbT
    ► bit.ly/3ujzpTK
    Selector Hub Tools
    ***
    ►rb.gy/h3h424
    GraphQL
    ***
    ► rb.gy/sj3gys
    Cypress API Testing
    ***
    ► shorturl.at/fjKPX
    Cypress Web Testing
    ***
    ► shorturl.at/agjlK
    Playwright with Javascipt
    ***
    ► shorturl.at/adSTY
    #SeleniumJava
    #WebDriverMethods
    #BrowserCommands
    #NavigationCommands
    #TestAutomation
    #JavaTesting
    #AutomatedTesting
    #QualityAssurance
    #SoftwareTesting
    #SeleniumWebDriver
    #JavaProgramming
    #TestScripts
    #WebTesting
    #AutomationFramework
    #QAEngineer
    #CodeAutomation
    #WebAutomation
    #SeleniumTips
    #WebDriverTricks
    #JavaDevelopers
    #TestingTools
    #TestDrivenDevelopment
    #BrowserAutomation
    #AutomatedTests
    #SeleniumTraining
    #JavaLearning
    #TestScripts
    #SeleniumCommunity
    #SoftwareQuality
    #ProgrammingTips
    #CodeQuality
    #WebDevelopment
    #JavaCode
    #WebDriverTutorial
    #SeleniumExperts
    #TestingFrameworks
    #WebApplications
    #AutomateEverything
    #DevOpsTesting
    #ContinuousTesting
    #AgileTesting
    #CrossBrowserTesting
    #TestAutomationTips
    #WebUIAutomation
    #EfficientTesting
    #QualityCode
    #JavaTestAutomation
    #WebDriverAutomation
    #TestDrivenApproach
    #SeleniumTricks

Комментарии • 113

  • @sreelathatharigonda8306
    @sreelathatharigonda8306 9 месяцев назад +5

    I wanted to take a moment to express my gratitude for the insightful and informative RUclips videos you've been uploading. They have been incredibly helpful in enhancing my understanding of API testing, Selenium and Java.Your dedication to sharing your knowledge is truly commendable, and it's made a positive impact on my learning journey. I greatly appreciate the time and effort you invest in creating such valuable content. Thank you once again for your invaluable contributions to the community. I look forward to continuing to learn from your expertise.

  • @numeshialmapiyasiri
    @numeshialmapiyasiri 9 месяцев назад +11

    Thank you so much sir. I am addicted to your sessions. Your teaching style is really amazing. All doubts are cleared clearly. You always provide details for 'why'.

  • @OverdoseGaming-18m
    @OverdoseGaming-18m 9 месяцев назад +7

    00:08 WebDriver navigational commands
    03:56 Difference between driver.get() and driver.navigate().to() methods
    11:48 Difference between passing URL in string format and URL object format
    14:50 Difference between navigate.to method and get method in Selenium with Java
    21:13 WebDriver browser navigation commands
    24:53 Browser navigation commands
    31:40 Capturing and switching between browser windows in Selenium with Java
    35:14 Converting Set collection to List collection for easy ID extraction
    42:02 Capturing window IDs for switching between browser windows
    45:18 Identifying and switching between multiple browser windows
    51:43 Managing browser windows in Selenium with Java
    55:33 Automating closing specific browser windows based on conditions
    1:01:41 Understanding how to switch between multiple browser windows and capture the title.
    1:04:44 Assignment on WebDriver Methods and Browser & Navigation Commands

  • @Kavyahb-jl2gs
    @Kavyahb-jl2gs 9 месяцев назад +1

    Sir thank you so much for your valuable teaching .......

    • @sdetpavan
      @sdetpavan  9 месяцев назад

      It's my pleasure

    • @shubhamlavekar6886
      @shubhamlavekar6886 6 месяцев назад

      @@sdetpavan Hi, can i get link for assignment solution please please sir how could i get that i want it eagerly want to learn and switch please reply sir

  • @akvines6836
    @akvines6836 9 месяцев назад +1

    Thank you for this series
    🙏🏻...
    Sir when this series complete?how many month it will continue?

  • @Vaibhav-z6o
    @Vaibhav-z6o 7 месяцев назад +1

    Great session, thank you sir!

  • @vimalaganga5908
    @vimalaganga5908 Месяц назад

    You are teaching 👌Sir

  • @Cherry_Art_World
    @Cherry_Art_World 9 месяцев назад +2

    Very nice sir....deep concepts

  • @karthiksundaram544
    @karthiksundaram544 9 месяцев назад +2

    You made subject interesting

  • @deepanjanadatta7395
    @deepanjanadatta7395 6 месяцев назад +2

    Where can I find the solutions for this video's assignment?

  • @sujatavannam9988
    @sujatavannam9988 2 месяца назад

    Thank You So Much sir

  • @babuseth4308
    @babuseth4308 9 месяцев назад +2

    Sir please make project also it will be very helpful for us

  • @rushikeshgavhane4795
    @rushikeshgavhane4795 9 месяцев назад +1

    Sir this is out of java we actually learn.. for example :-- fundelement, elements, by.( locator).
    Is this imp to learn or we can learn after joining any job in it field also

    • @numeshialmapiyasiri
      @numeshialmapiyasiri 9 месяцев назад

      those are from selenium. you can learn by this previous video session.

    • @dhanashreeize
      @dhanashreeize 4 месяца назад

      If you want to go for automation tester interview with selenium -java…knowing these things is must..without this u cannot crack the interview buddy!locators are the heart of selenium…no locators or find element method,….no webelement finding….

  • @avuladiwakarreddy3374
    @avuladiwakarreddy3374 9 месяцев назад +1

    Hi sir, i want to learn automation testing (selenium Java), please share when you are going to start new batch

  • @30_akshaysalunkedbda90
    @30_akshaysalunkedbda90 5 месяцев назад +1

    sir where i can get the assignment solution???

  • @learningtutorials4128
    @learningtutorials4128 9 месяцев назад

    Hi sir,can you explain how to read yes or no flags by using excel reader in selenium cucumber java framework or testng framework

  • @sumansambit7016
    @sumansambit7016 4 месяца назад

    Hi sir , may I know where is the assignment answer posted?

  • @montukumar5670
    @montukumar5670 9 месяцев назад +4

    Sir , please give the solution of the assignment u gave this time mostly taking all the links including more and closing the tabs. Thanks in advance sir

    • @saurabhkendre7285
      @saurabhkendre7285 7 месяцев назад

      can you get this assignment solution???

    • @montukumar5670
      @montukumar5670 7 месяцев назад

      @@saurabhkendre7285 sure , I will paste the solution

    • @saurabhkendre7285
      @saurabhkendre7285 7 месяцев назад

      ​@@montukumar5670yes please paste ASAP

    • @prathameshkanthale6796
      @prathameshkanthale6796 6 месяцев назад

      ​@@montukumar5670please paste brother ..

    • @ajinkyakedar1636
      @ajinkyakedar1636 5 месяцев назад

      If you got the answer for the assignment,please share it

  • @kalpeshvartale
    @kalpeshvartale 29 дней назад

    @sdetpavan Nice Session. Can you please provide the solution for the Assignment.

  • @chandumit1259
    @chandumit1259 19 дней назад

    how do we count only those 6links .....for every link there is "a" tag so iam getting 28 links .....for those 6links having same tag name..

  • @savinagowda4503
    @savinagowda4503 7 месяцев назад

    But sir in my webpage inspet window search by string, selector or xpath searching bar it's not showing...can you please help me with this

  • @soumyadeepmondal7432
    @soumyadeepmondal7432 9 месяцев назад +1

    Sir, can you please help me to get the knowledge on Data driven framework and keyword driven framework in selenium, java??

  • @vimalaganga5908
    @vimalaganga5908 Месяц назад

    How to perform an operation at at time X Y Z browsers

  • @JyotirmayeeRath-u6e
    @JyotirmayeeRath-u6e 5 месяцев назад

    Where can I get the Assignemnt answers ?

  • @nallasatish311
    @nallasatish311 5 месяцев назад

    Hi sir,
    I am facing issue while handling multiple windows. In my case the second and third window having same title name. It is travelling to third window but unable to click on the elements. Here I validates that whether is it travelling to third window or not. I used (getCurrentUrl) . But it's printing second window url. Where as in automation process it is travelling to third window. Any one could you please help me out of this.

  • @jansivasudeva2590
    @jansivasudeva2590 9 месяцев назад

    We want online course Sir....when u r going to start ..
    .

  • @Asimkhan-os1hd
    @Asimkhan-os1hd 8 месяцев назад

    hello sir, how are you. sir i have a question about automation testing that when I run my test of coding it will take very time I see your videos your website does not take a time to run. please also discuss this topics. and sometime in loading website their is also show human verification captcha is also show. what we do for that please also make this type of videos

  • @vimalaganga5908
    @vimalaganga5908 Месяц назад

    How to close one after another at a time

  • @khadheermahmud
    @khadheermahmud 9 месяцев назад +1

    Sir while launching the browser of democart it showing as verification sir

  • @deeptisharma9154
    @deeptisharma9154 9 месяцев назад

    Sir One interview question 'You found a bug but developer told you that its not a bug and after scrutiny I found it was really not a bug' any scenario?

  • @suriyapraba-vw2cn
    @suriyapraba-vw2cn 9 месяцев назад +2

    Thanks sir

  • @prathameshkanthale6796
    @prathameshkanthale6796 6 месяцев назад

    Can anyone tell me where is the link of assignment solutions?

  • @KiranKumar-yw7ym
    @KiranKumar-yw7ym Месяц назад

    Sir where we can get the assignment solutions

  • @VRL2024INDIA
    @VRL2024INDIA 9 месяцев назад +1

    Good Evening

  • @rameshrongala922
    @rameshrongala922 9 месяцев назад +1

    Thanks sir.

    • @sdetpavan
      @sdetpavan  9 месяцев назад +1

      Welcome!

    • @MyVlog902
      @MyVlog902 9 месяцев назад

      ​@@sdetpavansir
      Quality assurance analyst is tester r different is there future for qaa

  • @BinduKL-r2c
    @BinduKL-r2c 9 месяцев назад

    Sir ,Can I get solution for assignment question???

  • @chetanamhalsekar1886
    @chetanamhalsekar1886 9 месяцев назад

    Can you provide us a solution for assignemet.I am having a doubt in loops.Please sir will you help me providing a assignment solutions as early as possible.

  • @hemantjadhav1176
    @hemantjadhav1176 5 месяцев назад

    Hi Sir,
    How to get window ID? pls suggest.

    • @9363yt
      @9363yt 3 месяца назад

      getwindowhandle or if multiple use getwindow handles and print using set

  • @imdeepu9695
    @imdeepu9695 9 месяцев назад

    Sir I am waiting for the next video please post the next session.

  • @shvideo1
    @shvideo1 23 дня назад +1

    The URL constructors have been deprecated since 2020. You should not use them in 2024!

  • @Karthik-sk07
    @Karthik-sk07 9 месяцев назад +1

    Thank you sir

  • @deepaktdk3637
    @deepaktdk3637 6 месяцев назад

    Everyone paste the assignment solution. So that we can see the different approaches.

  • @arpita3891
    @arpita3891 9 месяцев назад

    If possible please upload Tosca testing tool tutorial

  • @kalaiselvikalai9454
    @kalaiselvikalai9454 9 месяцев назад

    Hi sir cypress api testing 9 videos you posted you will continue that are you finished that.

  • @sakalabhaktulaharika9381
    @sakalabhaktulaharika9381 9 месяцев назад

    Hi sir,
    can you please upload the answer for the assignment, i am not able to write the code for 3rd point mentioned in assignment, please help me out to solve this point

    • @lucascrush
      @lucascrush 7 месяцев назад

      public static void main(String[] args) throws InterruptedException {

      int count_links = 0;

      WebDriver driver = new ChromeDriver();
      driver.manage().window().maximize();

      //1) search for some phrase

      driver.get("testautomationpractice.blogspot.com/");
      driver.findElement(By.id("Wikipedia1_wikipedia-search-input")).sendKeys("selenium");
      driver.findElement(By.xpath("//input[@type='submit']")).click();

      Thread.sleep(3000); //need it becasue website need to load some stuff
      //2) Count how many links are there with this specific name ("selenium")

      Listlinks=driver.findElements(By.tagName("a"));
      for(WebElement link:links)
      {
      String linkText = link.getText();
      if(linkText.contains("Selenium"))
      {
      link.click(); //3) click on each using for loop
      count_links++;
      }
      }

      System.out.println("Total number of links with a (selenium) phrase : "+count_links);

      SetwindowIDs = driver.getWindowHandles();
      for(String winID:windowIDs)
      {
      String title = driver.switchTo().window(winID).getTitle();
      System.out.println(title+" "+winID); //4) Get windows ID's for every broser window

      if(!title.equals("Selenium (software) - Wikipedia")) //5) close everything expect selenium software
      {
      driver.close();
      }

      }

      }

    • @lucascrush
      @lucascrush 7 месяцев назад

      This is my private solution, there might be some mistakes

    • @vishalchandar4311
      @vishalchandar4311 5 месяцев назад

      @@lucascrush Hi, bro can u share me the assignment

  • @harishchandaluri628
    @harishchandaluri628 8 месяцев назад

    Here List can accept duplicate values where as set collection does not accept duplicate values for this reason for browser id's we are using set collection by iterator class can you please cover that too in this class thanks

    • @syedarshad9028
      @syedarshad9028 8 месяцев назад +1

      actually indexing strategy is not there in Set and in array list indexing is there so for that we are converting set to arraylist

  • @Automan_testing
    @Automan_testing 9 месяцев назад

    Sir can u please upload 2024 selenium with java interview questions

  • @vemulakarimullareddy4024
    @vemulakarimullareddy4024 4 месяца назад

    id's will changing but how id's return same id's

  • @Peakprospr420
    @Peakprospr420 8 месяцев назад

    Hi, can i get link for assignment solution please

  • @abinayawilson2552
    @abinayawilson2552 8 месяцев назад

    Kindly let me know where i can find the solution for the assigment ......can someone help??

    • @lucascrush
      @lucascrush 7 месяцев назад

      package day28;
      import java.util.List;
      import java.util.Set;
      import org.openqa.selenium.By;
      import org.openqa.selenium.WebDriver;
      import org.openqa.selenium.WebElement;
      import org.openqa.selenium.chrome.ChromeDriver;
      public class Assigment {
      public static void main(String[] args) throws InterruptedException {

      int count_links = 0;

      WebDriver driver = new ChromeDriver();
      driver.manage().window().maximize();

      //1) search for some phrase

      driver.get("testautomationpractice.blogspot.com/");
      driver.findElement(By.id("Wikipedia1_wikipedia-search-input")).sendKeys("selenium");
      driver.findElement(By.xpath("//input[@type='submit']")).click();

      Thread.sleep(3000); //need it becasue website need to load some stuff
      //2) Count how many links are there with this specific name ("selenium")

      Listlinks=driver.findElements(By.tagName("a"));
      for(WebElement link:links)
      {
      String linkText = link.getText();
      if(linkText.contains("Selenium"))
      {
      link.click(); //3) click on each using for loop
      count_links++;
      }
      }

      System.out.println("Total number of links with a (selenium) phrase : "+count_links);

      SetwindowIDs = driver.getWindowHandles();
      for(String winID:windowIDs)
      {
      String title = driver.switchTo().window(winID).getTitle();
      System.out.println(title+" "+winID); //4) Get windows ID's for every broser window

      if(!title.equals("Selenium (software) - Wikipedia")) //5) close everything expect selenium software
      {
      driver.close();
      }

      }

      }
      }

    • @dhanashreeize
      @dhanashreeize 4 месяца назад +1

      Hi…u have to first capture the xpath for search button and then enter the text u want to search inside that search box using sendkeys and then click on button…as the output 6 link will be displayed!
      U have to then write common xpath for all those 6 link and capture them into list of webelement..then iterate the list and apply gettext method and use loop to click on the links…which open new tabs..now using getwindowhandles capture the id’s of opened window…and store them into set of string and then iterate them.then switch to tabs using swaitch to window method and close them by writing a logic….
      Phew

    • @abinayawilson2552
      @abinayawilson2552 4 месяца назад

      Thanks

  • @abinayawilson2552
    @abinayawilson2552 9 месяцев назад

    Plz provide assignment link..

  • @rohiths-hx9ts
    @rohiths-hx9ts 9 месяцев назад

    Sir can you please put a video every day

  • @manneharshitha4465
    @manneharshitha4465 5 месяцев назад

    sir could please send the assignment solutions

  • @Gajalakshmi-l4i
    @Gajalakshmi-l4i 2 месяца назад

    Good Evening!!!
    Can anyone pls share the solution for this assignment.Im unable to click on each link by using for loop..I m getting Time out exception..Can any one pls help..

    • @navindaggula754
      @navindaggula754 9 дней назад

      Try this:
      // Step 2: Count number of links returned
      Thread.sleep(2000);
      List searchResults = driver.findElements(By.xpath("//div[@class='wikipedia-search-results']//a"));
      System.out.println("Number of search result links: " + searchResults.size());

      // Step 3: click on each link using loop
      for(WebElement result : searchResults)
      {
      String linkText = result.getText();
      System.out.println("Clicking on link: "+ linkText);
      result.click();
      Thread.sleep(2000);
      }

  • @rohiths-hx9ts
    @rohiths-hx9ts 9 месяцев назад

    Sir can please you put a video everyday

  • @Username13410
    @Username13410 9 месяцев назад

    Sir please provide the solution of the assignment

  • @malikbilalawan89
    @malikbilalawan89 5 месяцев назад

    respect for pakistan you are doing great work it will be helpfull if you give the assignment link

  • @khadheermahmud
    @khadheermahmud 9 месяцев назад +1

    Any help sir

  • @karthiksundaram544
    @karthiksundaram544 9 месяцев назад

  • @montukumar5670
    @montukumar5670 9 месяцев назад

    Next video please sir

  • @vighneshnayak9167
    @vighneshnayak9167 Месяц назад

    hi sir give me assignment video sir

  • @cookwithriba
    @cookwithriba 4 месяца назад

    Anyone has assignments solution pls paste here.appreciate your help.

  • @lonelysoul6462
    @lonelysoul6462 5 месяцев назад

    Sir no disrespect towards but you sometimes you take a lot of time to make us understand the concept which you itself said it's not important it is for developers so sir just leave that topic with few minutes only because there are few students including me who is not aware of automation at all and after listening that part it will get more confusing and boring ..

  • @MANOJKUMAR-cc6dn
    @MANOJKUMAR-cc6dn 7 месяцев назад

    diver.findElements(By.xpath("//*[@id='wikipedia-search-result-link']/a")); its correct or not showing output 5

  • @Skt915
    @Skt915 9 месяцев назад

    Sir we want selenium project

  • @srinithiraja444
    @srinithiraja444 9 месяцев назад

    Sir how to get connect with you? Can I get your email id please

  • @Silent-kq2cz
    @Silent-kq2cz 9 месяцев назад

    Sir how to connect with you? Kindly provide your email id

  • @poulamidas3951
    @poulamidas3951 День назад

    Where can I find the solutions for this video's assignment?

  • @nallasatish311
    @nallasatish311 5 месяцев назад

    Hi sir,
    I am facing issue while handling multiple windows. In my case the second and third window having same title name. It is travelling to third window but unable to click on the elements. Here I validates that whether is it travelling to third window or not. I used (getCurrentUrl) . But it's printing second window url. Where as in automation process it is travelling to third window. Any one could you please help me out of this.