Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Java maven – IllegalArgumentException: Input must be set

    Java maven – IllegalArgumentException: Input must be set

    April 21, 2024

    I get the following errror when I use git bash command – however when I run the test in Intellij everything works fine and test starts. Could you help ?

    mvn test -Dcucumber.filter.tags=”@desktop”

    java.lang.IllegalArgumentException: Input must be set
    at org.openqa.selenium.internal.Require.nonNull(Require.java:59)
    at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:97)
    at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:77)
    at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:46)
    at utils.Utils.waitForElement(Utils.java:28)
    at pages.LandingPage.acceptConsent(LandingPage.java:21)

    Feature file

    @desktop
    Scenario: Test landing page
    Given Customer accepts cookie consent
    And I click “OK” button at the bottom of the page

    POM

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <project xmlns=”http://maven.apache.org/POM/4.0.0″
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
    xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”>
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>Cucumber</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
    <maven.compiler.source>11</maven.compiler.source>
    <maven.compiler.target>11</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
    <!– https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java –>
    <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.4.0</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.testng/testng –>

    <!– https://mvnrepository.com/artifact/org.testng/testng –>
    <dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>7.7.1</version>
    <scope>test</scope>
    </dependency>

    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-java –>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>7.8.1</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-junit –>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>7.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>compile</scope>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.assertj/assertj-core –>
    <dependency>
    <groupId>org.assertj</groupId>
    <artifactId>assertj-core</artifactId>
    <version>3.23.1</version>
    <scope>test</scope>
    </dependency>

    <!– https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager –>
    <dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>5.3.1</version>
    </dependency>
    <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>RELEASE</version>
    <scope>test</scope>
    </dependency>

    <dependency>
    <groupId>org.reflections</groupId>
    <artifactId>reflections</artifactId>
    <version>0.9.11</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/com.google.guava/guava –>
    <dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>31.1-jre</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java –>
    <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.8.3</version>
    </dependency>
    <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.26</version>
    <scope>compile</scope>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.slf4j/slf4j-simple –>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>2.0.7</version>
    <scope>test</scope>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.slf4j/slf4j-api –>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>2.0.7</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.springframework/spring-core –>
    <!– https://mvnrepository.com/artifact/org.springframework/spring-core –>

    <!– https://mvnrepository.com/artifact/com.opencsv/opencsv –>
    <dependency>
    <groupId>com.opencsv</groupId>
    <artifactId>opencsv</artifactId>
    <version>5.7.1</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/picocontainer/picocontainer –>
    <!– https://mvnrepository.com/artifact/picocontainer/picocontainer –>
    <!– https://mvnrepository.com/artifact/picocontainer/picocontainer –>
    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-picocontainer –>
    <!– https://mvnrepository.com/artifact/picocontainer/picocontainer –>

    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-picocontainer –>
    <!– https://mvnrepository.com/artifact/picocontainer/picocontainer –>
    <dependency>
    <groupId>picocontainer</groupId>
    <artifactId>picocontainer</artifactId>
    <version>1.2</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/de.monochromata.cucumber/reporting-plugin –>
    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-html –>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-html</artifactId>
    <version>0.2.7</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin –>

    <!– https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin –>
    <dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.0.0</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-java8 –>
    <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-core –>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-core</artifactId>
    <version>7.11.2</version>
    </dependency>

    <!– https://mvnrepository.com/artifact/net.masterthought/maven-cucumber-reporting –>
    <!– https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting –>
    <!– https://mvnrepository.com/artifact/com.aventstack/extentreports-cucumber4-adapter –>

    <!– https://mvnrepository.com/artifact/com.aventstack/extentreports –>

    <!– https://mvnrepository.com/artifact/com.relevantcodes/extentreports –>

    <!– https://mvnrepository.com/artifact/net.masterthought/maven-cucumber-reporting –>
    <dependency>
    <groupId>net.masterthought</groupId>
    <artifactId>maven-cucumber-reporting</artifactId>
    <version>5.7.5</version>
    </dependency>

    </dependencies>

    <build>
    <plugins>

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.0.0</version>
    <configuration>
    <includes>
    <include>**/*TestRunner.java</include>
    </includes>
    </configuration>
    </plugin>

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
    <testFailureIgnore>true</testFailureIgnore>
    </configuration>
    </plugin>
    <plugin>
    <groupId>net.masterthought</groupId>
    <artifactId>maven-cucumber-reporting</artifactId>
    <version>5.7.5</version>
    <executions>
    <execution>
    <id>execution</id>
    <phase>verify</phase>
    <goals>
    <goal>generate</goal>
    </goals>
    <configuration>
    <projectName>Cucumber</projectName>
    <!– optional, per documentation set this to “true” to bypass generation of Cucumber Reports entirely, defaults to false if not specified –>
    <skip>false</skip>
    <!– output directory for the generated report –>
    <outputDirectory>${project.build.directory}</outputDirectory>
    <!– optional, defaults to outputDirectory if not specified –>
    <inputDirectory>${project.build.directory}/jsonReports</inputDirectory>
    <jsonFiles>
    <!– supports wildcard or name pattern –>
    <param>**/*.json</param>
    </jsonFiles>
    <!– optional, defaults to outputDirectory if not specified –>

    <!– optional, set true to group features by its Ids –>
    <mergeFeaturesById>false</mergeFeaturesById>
    <!– optional, set true to get a final report with latest results of the same test from different test runs –>
    <mergeFeaturesWithRetest>false</mergeFeaturesWithRetest>
    <!– optional, set true to fail build on test failures –>
    <checkBuildResult>false</checkBuildResult>
    </configuration>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>

    </project>

    Intellij configuration where it works

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCypress Automation Tutorial: Streamline Your Web Automation Testing
    Next Article I cannot open HTTPS web-page even with installed certificate on Mozilla

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 15, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4695 – PHPGurukul Cyber Cafe Management System SQL Injection

    May 15, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Google code confirms Gemini in Chrome copies Edge’s Copilot sidebar idea on Windows 11

    Operating Systems

    Meet Lytix: An AI Platform that Brings Insights, Testing, and E2E Analytics to Your LLM Stack with Minimal Changes to Your Existing Codebase

    Development

    The Developers’ Developers: Two Australian Developers Share Their Connections to Customers

    Databases

    Cybersecurity in 2025: Geopolitical Tensions, AI, and Cybercrime Shape the Future

    Development

    Highlights

    Development

    Strauss Borrelli PLLC Law Firm Investigates WD & Associates Data Breach

    May 29, 2024

    Strauss Borrelli PLLC, a leading law firm known for handling data breach litigation, has launched…

    How to Budget Smartly for Your First AI Project: A Step-by-Step Guide

    May 2, 2025

    Microsoft doubles down on Windows 11 — calls for major Copilot+ PC upgrade cycle in 2025

    January 6, 2025

    CISA, FBI, and DHS Releases Cybersecurity Blueprint for Civil Society

    May 15, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.