The browser does not initialize and throws the error
"WebDriver has not been found for this thread.Please verify you are using the correct WebDriverProvide with the appropriate credentials if using remote access e.g. to SauceLabs: -DSAUCE_USERNAME=xxxxxx-DSAUCE_ACCESS_KEY=xxx-xxxx-xxxx-xxxx-xxx ");
Code used is :
private ChromeWebDriverProvider driverProvider = null;
boolean headless = prop.getProperty("browser.headless")==null?false:Boolean.parseBoolean(props.getProperty(browser.headless).toString())
System.setProperty("webdriver.chrome.provider","chrome.exe path")
this.driverProvider=newChromeWebDriverProvider(headless);
this.lifecyclesteps=new PerstoriesWebDriverSteps(driverProvider) // code fails at this step
It does not return the webdriver instance
I want the browser to be initialized by using PerStoriesWebDriverStpes