123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Education >> View Article

Selenium Webdriver Methods- Selenium Online Training

Profile Picture
By Author: Sanaya
Total Articles: 19
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

1. Creating New Instance Of Firefox Driver – this will open an new Empty browser
WebDriver driver = new FirefoxDriver();
2. Command To Open URL In Browser
driver.get(“http://selenium-suresh.blogspot.com”);
This syntax will open specified URL of software web application in web browser.
3. Clicking on any element or button of webpage
driver.findElement(By.id(“id of any element or button”)).click();
4. Store text of targeted element in variable – This will retrieve text from targeted element of software web application page and will store it in variable = suresh
String suresh = driver.findElement(By.tagName(“select”)).getText();
5. Typing text in text box or text area.
driver.findElement(By.name(“txtboxname”)).sendKeys(“My First Name”);
6. Applying Implicit wait in webdriver – This syntax will force webdriver to wait for 15 seconds if an element not found on the page of a software web application.
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
7. Applying Explicit wait in webdriver – This will wait for 15 ...
... seconds for the expected text “Time left: 7 seconds” to appear on the targeted element.
WebDriverWait wait = new WebDriverWait(driver, 15);
wait.until(ExpectedConditions.textToBePresentInElementLocated(By.xpath(“xpathofelement”), “Time left: 7 seconds”));
8. Get page title in selenium webdriver
driver.getTitle();
9. Get the Current Page URL In Selenium WebDriver- It will retrieve the current page URL and you can use it to compare with your expected URL.
driver.get current URL();
10. Get domain name using javascript executor – This will retrieve your software application’s domain name using web driver's java script executor interface and store it into the variable.
JavascriptExecutor javascript = (JavascriptExecutor) driver;
String CurrentURLUsingJS=(String)javascript.executeScript(“return document.domain”);

For more details please visit: https://nareshit.com/selenium-online-training/

Total Views: 381Word Count: 229See All articles From Author

Add Comment

Education Articles

1. How Chandigarh's Growing Business Ecosystem Is Supporting Business Analytics Careers
Author: Anusha

2. Oscp Certification Guide: Exam, Cost, Training, And Career Value
Author: Passyourcert

3. How To Pass The Asis Cpp Exam On Your First Try: Training Tips & Strategies
Author: Passyourcert

4. Top Things To Consider Before Choosing An Online Bca Course
Author: Grass Solution

5. Hair Growth Clinic In Anna Nagar – Advanced Solutions For Healthy And Strong Hair
Author: MAHESH

6. Who Is Eligible For An Honorary Doctorate?
Author: UniversityGuru

7. What Is Search Engine Optimization? Everything You Need To Know About Seo In 2026
Author: Rohit Shyam

8. Invisalign In Velachery – The Modern Way To Straighten Your Teeth Comfortably
Author: ivar

9. Digital Smile Design In Chennai – The Future Of Personalized Cosmetic Dentistry
Author: ivar

10. Cosmetic Smile Design In Chennai – Transform Your Smile With Advanced Cosmetic Dentistry
Author: ivar

11. Ai Agents With N8n Training | Ai Agents Course Online
Author: Vamsi Ulavapati

12. Agentic Ai With Copilot Studio Online Training | Agentic Ai
Author: Visualpath

13. Azure Data Engineer Training Online | Course In Ameerpet
Author: naveen

14. Is Bicsi Data Center Design Consultant Dcdc Certification Worth It In 2026?
Author: Passyourcert

15. Join Nda Coaching With Schooling In Pune And Achieve Your Defence Dream
Author: Delhi Career Group

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: