Why I switched to using Selenide for UI tests
ฝัง
- เผยแพร่เมื่อ 22 พ.ค. 2021
- In this video, I'm explaining, why I switched my UI test setup to use Selenide instead of Selenium.
For more information see blog.sebastian-daschner.com/e... - วิทยาศาสตร์และเทคโนโลยี
Hi, Sebastian! In Russian-language IT, selenide is the standard. Most banks and major retailers use it
QA.GURU Respect!
Nice stuff. Thanks for sharing
Helpful tutorial.
I’m just getting into ui testing, so I’m full of questions hehe. Have you checked into Cypress. Or does it not comply with your requirements??
Using selenide more than 4 years
Hi, i have selenide with gradle framework inside my cucumber maven project and the selenide test am not able to run locally as my pom has selenium version as 3.14 , could you help me as am getting noclassdeffound exception
You can try to run my example project under: blog.sebastian-daschner.com/entries/switching-to-selenide
It's based on Maven
@@SebastianDaschnerIT getWebDriver is not coming for me @BeforeAll
@SneakyThrows
public static void logIn() {
// WebDriverRunner. setWebDriver (getRemoteWebDriver );
RedLoginDetails ENV = RdLoginDetails.QA2;
OracleConnectionDetails ora = OracleConnectionDetails.QA2;@BeforeAll
@SneakyThrows
public static void logIn() {
// WebDriverRunner. setWebDriver (getRemoteWebDriver ()) ;
RedLoginDetails ENV = RodLoginDetails.QA2;
OracleConnectionDetails ora = OracleConnectionDetails.QA2;
getWe() .manage () . addCookie () ;
m getRemoteWebDriver ( )
WebDriver
Selenide. getWebDriverLogs (String LogType)
List
Selenide.getWebDriverLogs (String logType,
List
гО
Press Enter to insert, Tab to replace Next Tip
Fetai
oracle = JdbcConnector.connect (ora.jdbc, ora.username, ora pass!
I have a maven project which has 3.14 as selenium version and inside this maven i have a selenide and gradle module . When i try to run selenide test , am not able to as login fails and says selenium version should be above 4 , hence i upgraded my selenium to 4.5 but now am not able to get driver instance neither in my cucumber project nor in my selenide project
@@SebastianDaschnerIT java. Lang. NoSuchMethodError: 'void org.openqa.selenium. chrome.ChroneDriver. (org.openqa. seleniun.chrone. ChroneDri
org.openga.selenium.Capabilities)*
Pricing Tests.feature X
BrowserSetup.java X
C FreightRulesSetupjava X
M pom.xml (red-e2e-tests) X
@BeforeAll
@SneakyThrows
public static void logIn() {
// WebDriverRunner .setWebDriver(getRemoteWebDriver());
RcdLoginDetails ENV = RcdLoginDetails.QA2;
OracleConnectionDetails ora = OracleConnectionDetails.QA2;
bpen (ENV.uri) ;
$ ( cssSelector. " [name= ' ssousername ' ]"). val (ENV. login);
$( cssSelector. " [name= 'password' ]") . val (ENV. password) .pressEnter ();
cassandra = CassandraConnector. connect (CassandraConnectionDetails.get ());
oracle = JdbcConnector .connect (ora.jdbc, ora.username, ora.password);
How to access already opened browser in selenide?
Once you've opened a browser session with Selenide you can use the $() and $$() methods to select elements in the current browsing window (tab).
@@SebastianDaschnerIT ok? but how to bind selenide to opened browsing window with no need to open browser each time?
Selenide is God's mercy upon us. Most of the cases it works flawlessly.
Could you pls help me with NoClassDefFound errror ?
Its inside my maven project and my selenium cersion inside my maven is not above 4 and when am uograding it to above 4 , i see errors
@@aparnausa3619 share code
@@bagzhansadvakassov1093 i have fixed it , thank you