title: WebDriver path is not set using under Cucumber?
body: <p>My task it to make a cucumber login test, the first step looks like this:</p>
  <pre><code>`@Given(&quot;^I have open the browser$&quot;)
  public void openBrowser() {
      System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;C:\\Users\\[REDACTED]\\Downloads\\chromedriver_win32\\chromedriver.exe&quot;);
      driver.set(new ChromeDriver());
  
  }`
  </code></pre>
  <p>This method runs correctly when I use it in:</p>
  <pre><code>public void login(){
      System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;C:\\Users\\[REDACTED]\\Downloads\\chromedriver_win32\\chromedriver.exe&quot;);
      ChromeOptions chromeOptions = new ChromeOptions();
      driver.set(new ChromeDriver(chromeOptions));
      driver.get().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
      driver.get().navigate().to(&quot;http://localhost:8080/[REDACTED]/login&quot;);
  
      LoginPage.nameTextboxSearch(driver.get()).sendKeys(&quot;admin&quot;);
      LoginPage.passwordTextboxSearch(driver.get()).sendKeys(&quot;admin&quot;);
      LoginPage.buttonSearch(driver.get()).click();
  </code></pre>
  <p>But fails if I try it with cucumber steps.
  My feature file:</p>
  <pre><code>Feature: Login Action
  
  Scenario: Successful Login with Valid Credentials
      Given I have open the browser
      And I open SportsBetting App's login website
      And I type-in valid username and password
      And I click on login button
      Then I should be redirected to home page
  </code></pre>
  <p>loginTest.java:</p>
  <pre><code>    @RunWith(Cucumber.class)
  @Cucumber.Options(
          features = {&quot;src/test/resources/Login_test.feature&quot;},
          glue ={&quot;stepDefinitions&quot;})
  
  public class loginTest{ }
  </code></pre>