File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ You can find the GitHub link in the video description or you can directly browse
96
96
9 . [ How to handle TextBoxes in Selenium WebDriver - Part 8 | తెలుగు |] ( https://youtu.be/nZcqUKrsFMQ )
97
97
10 . [ How to handle basic html controls in Selenium WebDriver - Part 9 | తెలుగు |] ( https://youtu.be/H-Agz7gOrdM )
98
98
11 . [ How to handle Dropdowns in Selenium WebDriver - Part 10 | తెలుగు |] ( https://youtu.be/jHwDhenftfE )
99
+ 12 . [ Navigation Methods in Selenium WebDriver - Part 11 | తెలుగు |] ( https://youtu.be/2JQ_6swL28U )
99
100
100
101
***
101
102
Original file line number Diff line number Diff line change
1
+ package com .SeleniumPractice ;
2
+
3
+ import org .openqa .selenium .By ;
4
+ import org .openqa .selenium .WebDriver ;
5
+ import org .openqa .selenium .chrome .ChromeDriver ;
6
+ import io .github .bonigarcia .wdm .WebDriverManager ;
7
+
8
+ /**
9
+ * @author Yadagiri Reddy
10
+ * Navigation Methods in Selenium WebDriver
11
+ */
12
+ public class NavigationMethods {
13
+ public static void main (String [] args ) throws Exception {
14
+ WebDriverManager .chromedriver ().setup ();
15
+ WebDriver driver = new ChromeDriver ();
16
+ driver .manage ().window ().maximize ();
17
+ driver .get ("https://www.google.com/" );
18
+ Thread .sleep (3000 );
19
+ driver .findElement (By .name ("q" )).sendKeys ("HYR Tutorials" );
20
+ driver .findElement (By .name ("q" )).submit ();
21
+ Thread .sleep (3000 );
22
+ driver .navigate ().to ("https://www.facebook.com/" );
23
+ Thread .sleep (3000 );
24
+ driver .
findElement (
By .
id (
"email" )).
sendKeys (
"[email protected] " );
25
+ Thread .sleep (3000 );
26
+ driver .navigate ().refresh ();
27
+ Thread .sleep (3000 );
28
+ driver .navigate ().back ();
29
+ Thread .sleep (3000 );
30
+ driver .navigate ().forward ();
31
+ Thread .sleep (3000 );
32
+ driver .quit ();
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments