Questions tagged [cucumber-java]

Cucumber-JVM is a versatile Java-based adaptation of Cucumber, designed to cater to a wide range of programming languages commonly used on the JVM platform. Supported JVM languages with Cucumber-JVM include Java, Groovy, Scala, Clojure, Jython, JRuby, Rhino JavaScript, and Gosu. This diverse compatibility makes Cucumber-JVM a flexible and powerful tool for automated testing across various JVM environments.

Selenium and Java: Issue with element detection in an ion search dialog box

We are currently working on automating a flow that requires clicking the plus sign on a popup window below. Despite trying to locate the element using an xpath locator, we are encountering difficulty in finding it and receiving the following error: error : ...

Avoid creating reports during Maven build execution

I'm encountering an issue with my Maven build process. I have multiple reporting plugins set up in the project, and every time I run Maven → clean, it clears the reports causing the Maven → build to fail with a FileNotFoundException error. Is ther ...

Tips for executing multiple cucumber scenarios with identical initial steps and varying subsequent steps without redundancy

One problem I encountered is having duplicate steps in my feature file scenarios. The initial four lines are the same, but the succeeding steps differ for each scenario. Initially, I included all steps per scenario, but it resulted in a duplicate error. He ...

Can an if-else statement be incorporated into the Cucumber test steps for a scenario that did not originally include one?

Here's the situation I am facing. In the past, the system under test (SUT) had just one button labeled "refund" for offers. Due to legal reasons, this button is now only accessible 20 days after the offer creation. Once this time period has passed, t ...

What is the process for inspecting the element within a div using jsname with JS?

Struggling to inspect elements within a DIV without using xpath. // Assert.assertEquals("Digite uma senha",driver.findElement(By.xpath("//*[@id=\"view_container\"]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[2]/div[2] ...

Utilizing properties files to pass values in Cucumber feature files' data tables

I am looking to retrieve the values of variables in a datatable from feature files using a properties file. I have attempted to implement this, but encountered an error. The complete stack trace is provided below. org.openqa.selenium.WebDriverException: u ...

The Transition from Cucumber 4.5.x to Version 5.0.0

I've been facing challenges while updating an old test framework from Cucumber 4.5.x to a newer version. The project uses Maven, IntelliJ, Java, Selenium, and Cucumber. It seems like Cucumber is either intentionally misleading me or their documentati ...

Are there any specific settings for the Internet Explorer webdriver in Serenity that allow for bypassing security certificates?

Just to give some background, I utilize a serenity.properties file for configuring my webdriver settings. Currently, I am working with serenity 2/cucumber 4/java. I was hoping to implement something along the lines of how Chrome driver interacts with sere ...

Using the powerful combination of Selenium 4.0 with Java, integrated with Cucumber, Browserstack, and Applitools for

Looking to develop a cutting-edge test automation framework with Cucumber integration, Selenium Webdriver version 4.0 offering cross-browser functionality, execution on Browserstack, and visual validation via Applitools. Open to any suggestions to make th ...

Issues arise when working with the variable Webdriver driver in conjunction with PageObjects

Is there a way to optimize the usage of Login_Page Login = PageFactory.initElements(driver, Login_Page.class) in all steps? It seems to be causing an error when used for each step as Java shows the message: "Value driver is always 'null'". I am also looki ...

Is it possible to run a Cucumber Test with just one command, depending on the tags condition? For example, only execute the @Regression tag if the @sm

I am currently facing a need to develop a single run command or script file that can execute the @Smoke tag test first, and if it passes, continue on to execute the @Regression tag. If the Smoke test fails, then the execution should be aborted. We are wor ...

Cucumber - Steps Without Definition Yet Fully Defined

I have recently started working on a Simple Selenium Cucumber project and have defined steps using the "Lambda Expressions Constructor" method in a feature file. However, when I tried to run the CucumberTest class, I encountered a failure exception. The ...