The dev-tools.ai selenium SDK is a simple library that makes it easy to write robust cross-browser web tests backed by computer vision and artificial intelligence.
dev-tools.ai integrates seamelessly with your existing tests, and will act as backup if your selectors break/fail by attempting to visually (computer vision) identify elements.
The dev-tools.ai SDK is able to accomplish this by automatically ingesting your selenium elements (using both screenshots and element names) when you run your test cases with dev-tools.ai for the first time.
The SDK is accompanied by a web-based editor which makes building visual test cases easy; you can draw boxes around your elements instead of using fragile CSS or XPath selectors.
Add the following line(s) to the dependencies section in your
pom.xml (Maven)
<dependency>
<groupId>ai.dev-tools</groupId>
<artifactId>devtools-ai-selenium</artifactId>
<version>0.1.+</version>
</dependency>
build.gradle (Gradle)
implementation 'ai.devtools:devtools-ai-selenium:0.1.+'
We have a detailed step-by-step tutorial which will help you get set up with the SDK: https://github.com/testdotai/java-selenium-sdk-demo