Questions tagged [selenium-jupiter]

JUnit 5 extension for Selenium

Filter by
Sorted by
Tagged with
1 vote
1 answer
277 views

How do I stay ahead with the latest WebDriver version on Selenium

Since the browser update yesterday my test won't start and I get the message: There was an error creating WebDriver object for Chrome I use Selenium Jupiter with the @TestTemplate and my browsers....
ladida's user avatar
  • 11
0 votes
1 answer
19 views

How to prevent SeleniumJupiter from quit the driver?

Selenium Jupiter run driver.quit() automatically after every test. But in some cases I would like to look at the browser after the test manually. In Selenium it's easy, don't call driver.quit(). But ...
ladida's user avatar
  • 11
0 votes
1 answer
35 views

Selenium-jupiter - passing timeout in browsers.json

I am trying to write selenium tests using Selenium-Jupiter. My team has decided to go with @TestTemplate approach and to use browsers.json. One thing we feel we need to do is alter the default ...
Kreweta's user avatar
  • 65
1 vote
1 answer
642 views

How can selenium-jupiter be used with Karate to automatically use the WebDriver matching the currently installed Chrome/Firefox etc.? [duplicate]

Background Selenium-Jupiter is a JUnit 5 extension aimed to ease the use of Selenium WebDriver by downloading and caching the WebDriver binaries required for each test, depending on which locally ...
Drunda Nibel's user avatar
0 votes
1 answer
55 views

What would be the best approach to overwrite multiple SeleniumJupiter configuration parameters?

As part of my test base class, I have something like this: seleniumJupiter.getConfig().setDefaultBrowser(BROWSER.getStringValue()); seleniumJupiter.getConfig().setScreenshotAtTheEndOfTests("...
Dane's user avatar
  • 41
0 votes
1 answer
174 views

Gitlab CI ParameterResolutionException Failed to resolve parameter

I have test case that works fine in my local eclipse environment. @Test @Order(1) void testTitle(@Arguments("--headless") ChromeDriver driver) { driver.get("https://google.com")...
achowdhury's user avatar
0 votes
1 answer
160 views

How can I get container ID in order to execute command in docker container?

I only seem able to use getContainerId(WebDriver) during the first test. Every subsequent test returns empty e.g. getContainerId(SelenideDriver.getWebdriver) Ideally I need to be able to execute ...
stevej2's user avatar
1 vote
1 answer
477 views

Selenium-Jupiter generic webdriver settings not applied

I want to use Selenium-Jupiter in my Spring Boot Project but my requirement is to switch the WebDriver implementation at runtime - based on the execution environment - using one common base class for ...
Yocker95k's user avatar
  • 241
1 vote
1 answer
374 views

Standard approach for multi browser test execution in Selenium Jupiter

I went through Selenium Jupiter manual and still cannot get the idea of how I can set multiple browsers in Selenium Jupiter to run every test in every browser. Should use Test Template for that ...
Paulus's user avatar
  • 138
0 votes
1 answer
991 views

How to configure Selenide remote grid url in Selenium-Jupiter test framework?

I am trying to configure a Selenide driver within the Selenium-Jupiter framework, to use my remote grid url but it keeps ignoring the configuration, and just runs the local installed browser. Here ...
djangofan's user avatar
  • 28.7k
-1 votes
1 answer
82 views

selenium-jupiter - Unable to find screenshot file

When I tried to run the below command with JUnit 5 mvn clean install -DskipTests && mvn clean test -pl=test-insight -Dtest="com.myproject.automation.test.settings.**" -Dspring.profiles.active=...
Tuyen Tran's user avatar
0 votes
1 answer
239 views

How to set browser arguments conditionally (Selenium-Jupiter specific)

I have tried so many things to set the proxy in a chrome-in-docker browser. I finally found something that works, but it isn't the best solution. @BeforeEach public void beforeEach(@Arguments("--...
Michiel Bugher's user avatar
0 votes
1 answer
456 views

How can I run Grid up and running

Is it possible to run the hub and nodes in Selenium Grid through Java/Selenium code? In an example provided by @Boni Garcia, there is GridLauncherV3 but this is not working with Selenium-jupiter ...
Lokesh's user avatar
  • 1
4 votes
1 answer
552 views

How to programmatically configure WebDriver in base class in Selenium Jupiter?

I want to migrate existing Selenium-Tests based on JUnit 4 to JUnit 5. For this purpose, I want to make use of Selenium-Jupiter. One requirement, that the tests must fulfill is, to be able to switch ...
Kai Hoelscher's user avatar
0 votes
1 answer
372 views

selenium-jupiter - How to set Firefox and Chrome options

I need to run the same selenium tests with Firefox and Chrome, but I also need to set different options for them. Is that possible? Running the same tests with both browsers is clearly possible, as ...
Simon Bennetts's user avatar
4 votes
1 answer
599 views

Combine @TestTemplate with @ParameterizedTest?

How can we use Selenium-Jupiter's @TestTemplate (to have it run with different browsers: https://bonigarcia.github.io/selenium-jupiter/#template-tests ) to combine it with @ParameterizedTest (for data-...
DieterR's user avatar
  • 41
0 votes
1 answer
65 views

selenium-jupiter - Connecto to seleniumGrid for testTemplates

Is it possible to combine the annotation @TestTemplate with the @DriverUrl so that I can run the tests on my Selenium Grid? Thanks Christian
Christian Seegraef's user avatar
119 votes
19 answers
199k views

Junit 5 - No ParameterResolver registered for parameter

I can write up and execute Selenium script without any special test framework but I wanted to use Junit 5 (because we have dependency with other tools) and I have never seen such error org.junit....
Mike ASP's user avatar
  • 2,083
2 votes
3 answers
681 views

How to use different webdrivers based on environment

I use selenium-jupiter. I am getting a webdriver from method arguments like this: @Test public void testWithChrome(ChromeDriver chromeDriver) { chromeDriver.get("someUrlHere"); } Now I ...
Coder3234's user avatar
0 votes
1 answer
74 views

2.1.0 requires minimum docker version?

I'm trying to evaluate Selenium-Jupiter, but get different problems, behavior depending on what version I use. I'm using gradle 4.6 and > docker version | grep API API version: 1.24 API ...
jhoglin's user avatar
  • 61
6 votes
2 answers
3k views

How to pass gradle systemProperties JUnit5 tests?

I am using gradle 3.5 and Unit 5 (jupiter). I wish to pass System property to my tests, in order to configure the test I am running the test using this command gradle test -Denv=envFile1 Here is ...
Shay_t's user avatar
  • 163