Selenium Script NOTES
Selenium Script NOTES
1.how to open chrome,edge or fireox browser then open url get the title of page, and get
the url of page
2.Navigation command- how to maximize,minimize window also how to go forward and backward from one page to another
Output:
To find out number of drop down options available we use following statement
Suppose we have open following websites and now I want to open particular website lets say Facebook how will you switch
between windows without using index
Facebook.com
gmail.com
amazon.com
flip-kart.com
Credence.com
Here we have used title to match with all handles whichever handle matches the title our required window will open .
Diff bet implicit and explicit is that when we apply implicit wait it applies to all element where as in the case of explicit wait is
used to apply for particular element
Action chains
11. how to handle hover drop down and select option out of it
tr[1]/th[1] means 1st row 1st column value from the table
How to check how many rows and columns are there in table
Here functionn of len and --lene--() is same
Q14.screenshot
Q15..excel operations
Q15.logging
Or
BY using loop
Here we get calender and we need to go through years and moths so in such case we use for loop method is shows below
Here it does not show added cookies as ss didn’t cover entire screen but it shows increse in count
We can delete cookies but ensure that cookies are not added repetedly if cookies are are there it wont perfectly so use delete all
cookies method so function works properly
Css selector-
Script: