Questions tagged [selenide]

Selenide is a framework for writing easy-to-read and easy-to-maintain automated tests in Java.

Selenide is based on and is compatible to Selenium WebDriver 2.0. It defines concise fluent API, natural language assertions and does some magic for ajax-bases applications to let you focus entirely on the business logic of your tests

References:

290 questions
2
votes
1 answer

TestNg Selenide. No webdriver is bound to current thread

I am setting up a project for spasuk in parallel. For more flexibility, I decided to use testng. Faced the problem that the tests do not see the web driver. Have the following error java.lang.IllegalStateException: No webdriver is bound to current…
2
votes
1 answer

Having trouble getting JUnit5 screenshots working

I am using Selenide 5.6.0 and Junit5 5.5.2 (in the context of Selenium-Jupiter) When I configure my test class like so: @ExtendWith({SeleniumExtension.class, ScreenShooterExtension.class}) Then I get this error showing up in the…
djangofan
  • 28,471
  • 61
  • 196
  • 289
2
votes
1 answer

Allure2 and Selenide - @Step annotation not displayed in report

I would like to add @Step annotation to my tests to make test results more readable. @DisplayName is working as expected but @Step not I'm running tests using command: mvn clean test and than generating results using: allure serve…
Mati
  • 33
  • 1
  • 6
2
votes
3 answers

Selenide: How to open Chrome browser with extensions

I've faced with a problem that I'm not able to open Chrome with any extension. I've already added an extension but don't know how to run it properly with Selenide framework. Could you please help me @BeforeClass public static void setUp() { …
hamvee
  • 141
  • 3
  • 13
2
votes
2 answers

Running Selenide with Selenium Grid?

In Selenide, creating a driver is simply using: `open(Link);` along with some system properties setting the webdriver and browser to use: System.setProperty("webdriver.chrome.driver", "K:/chromedriver.exe"); System.setProperty("selenide.browser",…
Jay
  • 61
  • 2
  • 14
2
votes
1 answer

Able to run JUnitCore test runner from IntelliJ run config, but not form commandline

I am writing a program to automate a visitor sign up, using selenide (4.4.x) and junit (4.12). The tests run fine if I run them as a JUnit test in the IDE, but for a more convenient usage I would like to run it from main/commandline. I managed to…
2
votes
5 answers

How to check page title in selenide

How to check page title in Selenide using shouldHave assertion? In 'Selenium' it will be the next code: Assert.assertEquals(title(), "Your page title");
Alex Kulinkovich
  • 4,408
  • 15
  • 46
  • 50
2
votes
1 answer

Multiple Selectors in Selenium Test

I want to test a page with responsive layout. Some elements (like the menu) will be different depending on resolution. how can I target them to run with the same test classes? i'm thinking about How.CSS, using = "a.normal-link, a#responsive-link" is…
devman
  • 641
  • 1
  • 8
  • 26
2
votes
1 answer

Selenide- different between open() & navigate & get

what are the differences between the following: open(url); // this is from Selenide & driver.navigate().to(url); //this is from selenium & driver.get(url); //this is from selenium
Hana90
  • 943
  • 5
  • 17
  • 37
2
votes
4 answers

Selenide combines 2 ElementsCollections

I have 2 ElementsCollections namely oddTableRowItems and evenTableRowItems: private static ElementsCollection oddTableRowItems() { return $$(By.className("odd")); } private static ElementsCollection evenTableRowItems() { return…
Cnel
  • 41
  • 6
1
vote
1 answer

Google Vignette (Random Advertisement) Interrupt Test Flow

I had several Selenide automated test web sites which have Google Vignette. The google vignette have different iframe id. I cannot close it using automation code due to different google vignette button and different iframe id. Questions: How to…
nicholas
  • 2,581
  • 14
  • 66
  • 104
1
vote
0 answers

Program fails trying to re-get window handle when switching between browser tabs

Could somebody help me please! What is the problem here: I'm working with selenide, writing autotests using java and I need to switch between different tabs in browser or between its windows from time to time. I use the same method for it,…
1
vote
0 answers

Selenide driver implemention: TS2345 Argument of type 'WebDriver' is not assignable to parameter of type 'WebDriver | (() => WebDriver)'

Im using selenidejs with typescript. I first init a WebDriver with selenium, and then I implement it to the selenide Browser, as seen in this link - docs to selenidejs: https://github.com/KnowledgeExpert/selenidejs When I try to do it like in the…
shir
  • 31
  • 4
1
vote
1 answer

How to set an HTTP Basic Auth header in Selenide - have to use corporate proxy as well

I need to switch Basich Auth in custom client framework that use Selenide for E2E Testing from Basic URL Auth to Basic Auth with http header. The framework already uses corporate http proxy with Basic Auth, selenium Grid 4.5.0 and Selenide 6.9.0. My…
1
2
3
19 20