I wanted to take a moment to express my gratitude for the insightful and informative TH-cam 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.
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'.
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
@@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
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
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
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….
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.
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
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?
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.
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
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
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
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
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
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 ..
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.
I wanted to take a moment to express my gratitude for the insightful and informative TH-cam 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.
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'.
Welcome
Me too
Thank You sir
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
Hey how do you capture this timestamp
Sir thank you so much for your valuable teaching .......
It's my pleasure
@@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
Great session, thank you sir!
Very welcome
You made subject interesting
Sir please make project also it will be very helpful for us
Very nice sir....deep concepts
Thanks
Hi sir, i want to learn automation testing (selenium Java), please share when you are going to start new batch
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
can you get this assignment solution???
@@saurabhkendre7285 sure , I will paste the solution
@@montukumar5670yes please paste ASAP
@@montukumar5670please paste brother ..
If you got the answer for the assignment,please share it
Where can I find the solutions for this video's assignment?
Thank you for this series
🙏🏻...
Sir when this series complete?how many month it will continue?
Sir, can you please help me to get the knowledge on Data driven framework and keyword driven framework in selenium, java??
Hi sir,can you explain how to read yes or no flags by using excel reader in selenium cucumber java framework or testng framework
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
those are from selenium. you can learn by this previous video session.
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….
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.
We want online course Sir....when u r going to start ..
.
If possible please upload Tosca testing tool tutorial
Hi sir , may I know where is the assignment answer posted?
Thanks sir
Welcome
Sir I am waiting for the next video please post the next session.
Sir while launching the browser of democart it showing as verification sir
Everyone paste the assignment solution. So that we can see the different approaches.
Thank you sir
Welcome
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
Thanks sir.
Welcome!
@@sdetpavansir
Quality assurance analyst is tester r different is there future for qaa
Good Evening
Can anyone tell me where is the link of assignment solutions?
Sir can u please upload 2024 selenium with java interview questions
Where can I get the Assignemnt answers ?
sir where i can get the assignment solution???
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
Hi Sir,
How to get window ID? pls suggest.
getwindowhandle or if multiple use getwindow handles and print using set
Hi sir cypress api testing 9 videos you posted you will continue that are you finished that.
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?
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.
Sir can you please put a video every day
Sir ,Can I get solution for assignment question???
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
actually indexing strategy is not there in Set and in array list indexing is there so for that we are converting set to arraylist
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
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();
}
}
}
This is my private solution, there might be some mistakes
@@lk4426 Hi, bro can u share me the assignment
Sir can please you put a video everyday
id's will changing but how id's return same id's
respect for pakistan you are doing great work it will be helpfull if you give the assignment link
Plz provide assignment link..
Hi, can i get link for assignment solution please
Same
Kindly let me know where i can find the solution for the assigment ......can someone help??
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();
}
}
}
}
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
Thanks
sir could please send the assignment solutions
❤
Any help sir
Sir please provide the solution of the assignment
Next video please sir
Anyone has assignments solution pls paste here.appreciate your help.
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 ..
diver.findElements(By.xpath("//*[@id='wikipedia-search-result-link']/a")); its correct or not showing output 5
Sir we want selenium project
Sir how to get connect with you? Can I get your email id please
Sir how to connect with you? Kindly provide your email id
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.