selenium-grid2-api | Selenium Grid2 API details / sample code | Functional Testing library
kandi X-RAY | selenium-grid2-api Summary
kandi X-RAY | selenium-grid2-api Summary
This is an attempt to document the Grid2 API endpoints, along with some code to interact with same and give some sample custom proxies, html renderers and capability matchers. Oh, and some servlets too. Grid2 available endpoints: * /grid/console/ * /grid/beta/console/ * /grid/register/ * /grid/driver/ * /wd/hub/ * /selenium-server/driver/ * /grid/resources/ * /grid/api/proxy/ * /grid/api/hub/ * /grid/api/testsession/ * /lifecycle-manager/.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles GET requests
- Gets the response JSON for all proxied proxies
- Process the grid
- Process post
- Retrieves information about a remote webdriver node
- Extract json object from response
- The main entry point
selenium-grid2-api Key Features
selenium-grid2-api Examples and Code Snippets
Community Discussions
Trending Discussions on selenium-grid2-api
QUESTION
Is there a way to check the chrome driver version in use on a particular node remotely?
I know running chromedriver.exe -v
directly on the node will report the driver version. But is there any way to query this through the selenium grid api?
I've looked at the useful information here but I can't see a way to do it: https://github.com/nicegraham/selenium-grid2-api
Or ideally I'd like to see this displayed on configuration tab of the selenium grid console for each node.
Maybe there's a way to display this as an extra property I add to the configuration by capturing the output of running capture the output of chromedriver.exe -v
prior to connecting the node to the grid?
ANSWER
Answered 2017-Feb-24 at 11:10If you have a configuration file for your node you can add the currently running/deployed chromedriver version to that and than it will be shown in the Configuration tab.
I added the chromedriver version by hand, but you can easily add this during deployment of the node.
This way it will be displayed in the capabilities section of the Configuration tab in your /grid/console.
PS: If you need the Chromedriver version during runtime of your code you can get it with driver.getCapabilities().getCapability("chrome")
and than parse the chromedriverVersion
with a RegEx.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install selenium-grid2-api
You can use selenium-grid2-api like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the selenium-grid2-api component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page