• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

Advance Selenium

Handle Multiple Windows in Selenium Webdriver in Simple ways

October 24, 2020 by Mukesh Otwani 69 Comments

Robot class in Selenium Webdriver

We can handle multiple windows in selenium webdriver using Switch To methods which will allow us to switch control from one window to another window. If you are working with web applications then you must have faced this scenario where you have to deal with multiple windows. If you have to switch between tabs then also you have to use the same approach.  Using the switch To … [Read more...] about Handle Multiple Windows in Selenium Webdriver in Simple ways

Javascript in Selenium Webdriver and Different usage

October 2, 2020 by Mukesh Otwani 12 Comments

Implement JavaScript in Selenium To execute JavaScript in our webdriver script we do not have to write the separate code we have one predefined interface available. JavascriptExecutor is an Interface which is available in package org.openqa.selenium.JavascriptExecutor; Inside this Interface we have some predefined method called executeScript()- so whatever script you will pass as a String It will be executed by JavascriptExecutor Note- This is most common question in interview that how to type in Selenium without using sendKeys method Let us implement the same Program 1- How to type in Selenium without using sendKeys() method import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.firefox.FirefoxDriver; public class TestFirefox { public static void main(String[] args) throws InterruptedException { // Open Firefox browser FirefoxDriver driver=new FirefoxDriver(); // Maximize the window driver.manage().window().maximize(); // Open applicatiion driver.get("enter your application URL"); // This will execute JavaScript in your script ((JavascriptExecutor)driver).executeScript("document.getElementById('some id').value='mukesh'"); } } Program 2- How to click in Selenium if button or radio button is disable package seleniumday1; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.firefox.FirefoxDriver; public class TestFirefox { public static void main(String[] args) throws InterruptedException { // Open Firefox browser FirefoxDriver driver=new FirefoxDriver(); // Maximize the window driver.manage().window().maximize(); // Open applicatiion driver.get("enter your application URL"); // This will execute JavaScript in your script ((JavascriptExecutor)driver).executeScript("document.getElementById('enter your element id').click()"); } } Program 3- How to uncheck checkbox in Selenium if checkbox is disable package seleniumday1; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.firefox.FirefoxDriver; public class TestFirefox { public static void main(String[] args) throws InterruptedException { // Open Firefox browser FirefoxDriver driver=new FirefoxDriver(); // Maximize the window driver.manage().window().maximize(); // Open applicatiion driver.get("enter your application URL"); // This will execute JavaScript in your script ((JavascriptExecutor)driver).executeScript("document.getElementById('enter element id').checked=false"); } } Please comment below if you are facing any issue. Thanks for visiting my blog. Keep in touch. Happy Testing

Hello, Welcome to Selenium Tutorials in this post we will see how we can introduce Javascript in Selenium Webdriver and what are the usage? What is JavaScript JavaScript is one of the programming languages of the Web. All modern HTML pages are using JavaScript. For more details, you can refer Wikipedia - JavaScript   Use of Javascript in Selenium Webdriver We … [Read more...] about Javascript in Selenium Webdriver and Different usage

What is Explicit wait in Selenium Webdriver

June 17, 2020 by Mukesh Otwani 38 Comments

Explicit wait in selenium webdriver

To understand the Explicit wait in Selenium Webdriver you should know the requirement why we use wait statements in programs. I will give you a couple of examples in which you will get the complete idea of why wait is important. Before we move ahead, I would suggest you read about Implicit Wait in Selenium so that you will understand the clear difference between implicit … [Read more...] about What is Explicit wait in Selenium Webdriver

How to use Implicit wait in Selenium Webdriver

June 15, 2020 by Mukesh Otwani 26 Comments

Selenium

This guide will help you to understand implicit wait in Selenium Webdriver and implementation as well. If you have ever worked on any automation tool then you must be aware of Sync issues in the script. It is one of the biggest pain for an automation engineer to handle sync issues between elements. Sometimes an application will not able to load elements due to the below … [Read more...] about How to use Implicit wait in Selenium Webdriver

Most Common Challenges You Faced in Selenium Automation

April 14, 2020 by Mukesh Otwani 13 Comments

Most Common Challenges You Faced in Selenium Automation

Selenium is an open-source test automation framework and it has its own advantage and disadvantage as well. Even if you take other automation tools like QTP, Katalon, Sahi, etc every single tool has some kind of limitation. Today I am going to discuss some challenges which we face in our day to day activity. The most common challenges you faced in Selenium Automation might … [Read more...] about Most Common Challenges You Faced in Selenium Automation

« Previous Page
Next Page »

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?