Not able to get Driver methods using cucumber framework

Hi,

 

I was learning cucumber framework as per your tutorial.

I have completed major steps as per your tutorial but when I started writing selenium scripts. I observed issue using driver methods.

My step definition class-

package stepdefinitions;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class sales_invoice_steps {
WebDriver d = new FirefoxDriver();
d.
}

Now, I am not able to use the driver methods. It is not giving me any method of driver after d. to get url or findelement.

I have all the dependency as mentioned in tutorial and selenium-java as Selenium-java version- 3.7.0

Just FYI.. When I tried to find the reason, someone clarified to use selenium standalone server jar but it doesn’t exist in my maven dependency jar files.

Can you pls help to resolve this issue?

 

 

Default Asked on January 10, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.