Selenium Knowledgebase

Title Language Preview Date Posted
Get HTML Source of WebElement in Selenium WebDriver using C# C#

To return the inner HTML source you need to use the element.GetAttribute("innerHTML") code as sho

04/05/2021
Execute JavaScript using Selenium WebDriver (Java) Java

The following script shows how to use Java's JavascriptExecutor class, to execut

04/05/2021
How to select a drop-down menu value with Selenium using Java? Java

04/05/2021
Is there a way to get element by XPath in Selenium WebDriver (java)? Java

WebElements can be located with selenium webdriver using XPaths.

04/05/2021
How do I find an element that contains specific text in Selenium Webdriver (Java)? Java

To locate an element, you need to find the element based on its XPath as you can specify the text

04/05/2021
How to select an option from drop down using Selenium WebDriver C#? C#

To select an option from a drop-down menu in C#, you can find the element directly using its XPat

29/04/2021
How to select a drop-down menu value with Selenium using Python? Python

29/04/2021
WebDriver - wait for element using Java Java

In order to explicitly wait until an element is visible or clickable, the most direct and simple

27/04/2021
How to switch to the new browser window, which opens after click on the button? (Java) Java

In order to change focus to a newly opened tab or window, use window handles as shown in the foll

27/04/2021
Python Selenium accessing HTML source Python

In order to interact with the entire page source in Python, you need to use the page_source prope

27/04/2021
How can I ask the Selenium-WebDriver to wait for few seconds in Java? Java

To tell the Selenium WebDriver to wait for a specified amount of time use Thread.sleep

27/04/2021
Getting the return value of Javascript code in Selenium (Java) Java

In order to return values from Javascript code, you need to execute your chosen Javascript code u

27/04/2021

Pages