Release notes: version 1.2
adds better syntax for XPath locators $x(..)
adds functionality for css= locators
-----
Create automated website tests for the Selenide framework and JUnit 4 by using the Katalon Recorder plugin.
Steps:
1) Record browser actions and use various assertion commands in the Katalon Recorder to create replayable website tests.
2) Click "Export" in the Recorder and choose "Selenide Framework".
3) Selenide syntax will be generated automatically.
Note: there is no difference between "assert" and "verify" in the Selenide syntax. Instead, you can use the following code if you use Maven.
command line: mvn "-Dsurefire.skipAfterFailureCount=1" test
pom:
org.apache.maven.plugins
maven-surefire-plugin
3.0.0-M4
1
This stops the tests after the first failure. You could raise the number to 3 or 10 if you want to prevent runaway failures.
Related information:
Selenide framework: https://selenide.org/
Katalon Recorder plugin: https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid
source code: https://github.com/jpratt2/selenideExport-release
If you want to start using Selenide in Maven:
com.codeborne
selenide
5.7.0
junit
junit
4.13
Note: in Selenide, you don't have to maintain browser drivers. It does this automatically. If you want to launch a test using a specific browser in Maven, you could use this command line syntax:
mvn -Dselenide.browser=firefox test
谷歌浏览器、其他Chromium内核的浏览器
为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效