Selenium Web Driver Articles

Found 130 articles

How to install Selenium WebDriver on Mac OS?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 17-Mar-2026 3K+ Views

We can install Selenium WebDriver on Mac OS to automate web browsers for testing purposes. Selenium is a popular framework for web automation that supports multiple browsers including Chrome, Firefox, and Safari. We shall use Homebrew package manager along with pip for a streamlined installation process. Prerequisites Before installing Selenium WebDriver, ensure you have the following installed on your Mac − Python 3.x − Check with python3 --version Homebrew − Install from https://brew.sh/ Google Chrome browser − Download from official website Step-by-Step Installation Step 1: Install Selenium Python Package Install Selenium using ...

Read More

Capturing JavaScript error in Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 2K+ Views

We can capture JavaScript errors in Selenium WebDriver to identify console errors that appear in the browser's Developer Tools. These errors can occur due to functional issues on the page or performance problems caused by excessive logging. JavaScript errors are typically visible in the Console tab of browser Developer Tools and can impact application functionality. Selenium provides logging capabilities to capture and analyze these errors programmatically. Browser Developer Tools - Console Tab ...

Read More

Wait for complex page with JavaScript to load using Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 3K+ Views

We can wait for a complex page with JavaScript to load with Selenium. After the page is loaded, we can invoke the Javascript method document.readyState and wait till complete is returned. Understanding document.readyState The document.readyState property returns the loading status of the document. It has three possible values: loading - The document is still loading interactive - Document has finished loading but sub-resources may still be loading complete - The document and all sub-resources have finished loading Syntax JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("return document.readyState").toString().equals("complete"); Method 1: Using document.readyState Check ...

Read More

How to get the value of the edit box in Selenium?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 642 Views

In Selenium WebDriver, retrieving values from edit boxes (input fields) requires specific methods since getText() often returns empty strings for input elements. Here are the most effective approaches to extract values from edit boxes. Why getText() May Not Work The getText() method retrieves visible text content, but input fields store their values in the "value" attribute rather than as text content. This is why getText() often returns empty strings for input elements. Method 1: Using getAttribute("value") The most reliable approach is using the getAttribute() method to retrieve the "value" attribute: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; ...

Read More

How to click on a link in Selenium with python?

SaiKrishna Tavva
SaiKrishna Tavva
Updated on 10-Sep-2024 8K+ Views

We can click on a link on page with the help of locators available in Selenium. Link text and partial link text are the locators generally used for clicking links. Both these locators work with the text available inside the anchor tags. Link Text: In Selenium a link text is used to hyperlinks on a web page, to create the hyperlinks on a webpage, we can use anchor tag followed by link Text. ...

Read More

Typing Enter/Return key in Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 31-Oct-2023 29K+ Views

We can type Enter/Return key in Selenium. We shall use the sendKeys method and pass Keys. ENTER as an argument to the method. Also, we can use pass Keys. RETURN as an argument to the sendKeys method for the same purpose.To use the Keys class, we have to incorporate import org.openqa.selenium.Keys to the code. Let us type Enter/Return after inputting text within the below edit box.Exampleimport org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.By; import org.openqa.selenium.Keys; public class TypeEnter{    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver",       "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");       WebDriver driver = new ...

Read More

Limitations of Selenium Webdriver

Siva Sai
Siva Sai
Updated on 18-Jul-2023 870 Views

Web testing has undergone a revolution thanks to Selenium WebDriver, a potent technology. This open-source framework is crucial to web application testing since it enables developers to automate browsers. Selenium WebDriver does have some restrictions, though, much as any tool. In order to better comprehend these restrictions, this article explores them and offers specific instances. Please be aware that while this article describes the limitations of Selenium WebDriver, it does not discount the enormous value and flexibility that it provides to developers all over the world. The Selenium WebDriver: A Brief Overview A component of the Selenium Suite called Selenium ...

Read More

How to obtain the tagname of the parent element in Selenium webdriver?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 22-Nov-2021 3K+ Views

We can obtain the tagname of the parent element in Selenium webdriver. First of all, we need to identify the child element with help of any of the locators like id, class, name, xpath, or CSS. Then we have to identify the parent with the findElement(By.xpath()) method.We can identify the parent from the child, by localizing it with the child and then passing (parent::*) as a parameter to the findElement(By.xpath()). Next, to get the tagname of the parent, we have to use the getTagName() method.Syntaxchild.findElement(By.xpath("parent::*"));Let us identify tagname of the parent of child element li in the below html code ...

Read More

How to obtain the page title using Selenium webdriver?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 22-Nov-2021 10K+ Views

We can obtain the page title using Selenium webdriver. The method getTitle() is used to obtain the present page title and then we can get the result in the console.Syntaxt = driver.getTitle();Let us find the title of the current page. We shall get About Careers at Tutorials Point – Tutorialspoint as output.ExampleCode Implementation.import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class PageTitle{    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver",       "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");       //implicit wait       driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);       WebDriver driver = new ChromeDriver(); ...

Read More

Where to find Selenium Webdriver release notes?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 30-Nov-2020 177 Views

We can find the release notes of Selenium webdriver. They reside within the source control under the specific folder for the particular language libraries. Follow the steps one by one −Navigate to the link − http://docs.seleniumhq.org/.Click on the Download tab.Move to the Selenium Client & WebDriver Language Binding section.Click on the Change Log link for each of the languages.

Read More
Showing 1–10 of 130 articles
« Prev 1 2 3 4 5 13 Next »
Advertisements