Skip to content

Commit c8da035

Browse files
committed
Selenium Java in Telugu Course updated
1 parent 504f68b commit c8da035

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ You can find the GitHub link in the video description or you can directly browse
9696
9. [How to handle TextBoxes in Selenium WebDriver - Part 8 | తెలుగు |](https://youtu.be/nZcqUKrsFMQ)
9797
10. [How to handle basic html controls in Selenium WebDriver - Part 9 | తెలుగు |](https://youtu.be/H-Agz7gOrdM)
9898
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)
99100

100101
***
101102

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)