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
33
votes
9 answers

Unable to establish websocket connection

I had coded automation testing in selenide but strange time comes up. The browser window not able to establish websocket connection to http://localhost:2757/devtools/browser/uuid > [ERROR] Tests run: 97, Failures: 1, Errors: 0, Skipped: 96, Time >…
nicholas
  • 2,581
  • 14
  • 66
  • 104
7
votes
1 answer

Selenide tests hang in Firefox

I'm experiencing a problem running Selenide tests in Firefox version 46. When tests run separately everything works fine. But when I run all test methods in class it hangs on the following step: addons.productaddons INFO sending request to:…
Dmitry Senkovich
  • 5,521
  • 8
  • 37
  • 74
6
votes
1 answer

Cannot catch NoSuchElementException with Selenide

I’m trying to catch NoSuchElementException. This is my code: public void checkActiveApps() { try { $(BUTTON).click(); } catch (org.openqa.selenium.NoSuchElementException e) { System.out.println(e); } } But the exception…
IKo
  • 4,998
  • 8
  • 34
  • 54
6
votes
1 answer

Any way to run JUnit5 tests in parallel?

Previously I was using Maven+Selenide+JUnit4 for my tests and it was fine, parallel running worked perfectly. Example: org.apache.maven.plugins maven-surefire-plugin
Gordon Freeman
  • 131
  • 2
  • 8
5
votes
3 answers

Running headless firefox Xvfb with Jenkins to run selenium tests

I face with Error: no display specified error when running play framework tests in Jenkins at FreeBSD server. So every time I face with timeout org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055…
kyberorg
  • 637
  • 1
  • 8
  • 22
4
votes
1 answer

Is there a way to define browser args using Selenide?

I am trying to do the same test but with selenide instead of selenium. The web site i am testing requires these 4 arguments otherwise won't work. Is there a way to define browser args using Selenide? private val driver =…
4
votes
1 answer

Allure: How To Make Parent Steps failed if subStep is failed?

I have allure listener which reports all selenide asserts but in case of fail only sub step is marked as failed. and It is unclear from report Listener: @Override public void beforeEvent(final LogEvent event) { …
Anton_Selenium
  • 339
  • 7
  • 20
4
votes
2 answers

Selenide. download() returns FileNotFoundException: Failed to download file

I want to check downloading a file using Selenide download() method, but catch FileNotFoundException and error 'Intercepted 1 responses', though file was downloaded. I have button, click on which results in downloading a zip file. Element doesn't…
Svetlana
  • 43
  • 5
4
votes
2 answers

Selenide - How to run it with a headless Chrome?

We are trying to developer an automation test, and we found Selenide an interesting and easy framework for running the UI tests. Selenide needs as an input the browser to use. So we are passing 2 arguments to the…
riorio
  • 6,500
  • 7
  • 47
  • 100
4
votes
2 answers

selenium: What if user close the browser or webdriver? how can I detect if the browser is closed?

OS:Window 10 Browser: Chrome webDriver Browser Version: Chrome 63.0.3239.10(64bit) Selenium Version 2.44 Added below dependency : org.seleniumhq.selenium selenium-java
3
votes
1 answer

How do I add a screenshot to an Allure report?

I have a Selenide+Java project which uses allure reporting. I am using the TestExecutionListener to handle browser setup, but I am having some extreme difficulty figuring out how to add screenshots to the report on a test failure. I'm…
Michael Dally
  • 195
  • 3
  • 12
3
votes
1 answer

Filtering an ElementsCollection

I'm trying to create a function to filter an ElementsCollection, with a condition on a child of each element instead of the element itself. Here's what I came up with: public static ElementsCollection filterByChild(ElementsCollection…
Eldy
  • 1,027
  • 1
  • 13
  • 31
2
votes
1 answer

Random advertisement pop up when execute automation testing

I have a site https://master.nst.com.my/sports. There is advertisement pop up display randomly for certain menu options. There is no rules regard this. How to detect when there is pop up display then i just close the pop…
nicholas
  • 2,581
  • 14
  • 66
  • 104
2
votes
2 answers

Creating children ElementsCollection based on parent's one in Selenide

I'm using Selenide and looking for an opportunity to create children ElementsCollection based on a parent's one. For example, I have a web table and a parent ElementsCollection consisting of table rows. So, after filtering this collection by some…
balantain
  • 105
  • 2
  • 8
2
votes
0 answers

An issue when uploading CSV file using Selenide on Jenkins

Im trying to upload CSV file from local storage. Driver initialization: private static RemoteWebDriver createRemoteWebDriver(DesiredCapabilities caps) throws MalformedURLException { RemoteWebDriver driver = new…
1
2 3
19 20