In Java, you can get the version of Selenium by using the following code:
String version = org.openqa.selenium.remote.RemoteWebDriver.getVersion().toString();
System.out.println("Selenium Version: " + version);
In Python, you can get the version of Selenium by using the following code:
from selenium import __version__
print("Selenium Version:", __version__)
In C#, you can get the version of Selenium by using the following code:
using OpenQA.Selenium;
string version = ((RemoteWebDriver)driver).Capabilities.GetCapability("version").ToString();
Console.WriteLine("Selenium Version: " + version);
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-12-11 11:00:00 +0000
Seen: 13 times
Last updated: Nov 03 '21
How can a list be sorted alphabetically within a console application?
What is a more effective method for substituting a value in the query string of a specific URL?
What is the method to retrieve the JSON data from a column in SQL?
What is the accurate method for sinking to BigQuery by utilizing Dataflow Apache Beam?
How can set the Project Title in the Doxygen Configuration File?
How can I convert Double to Long in Java?
Can I add a default Parameter for a Method in Java like int calculate(int x, int y=2)?