public WebDriver wowXhr() { WebDriverManager.chromedriver().setup(); WowXHR wowXHR = null; try { wowXHR = new WowXHR(new ChromeDriver()); } catch (DriverNotSupportedException e) { e.printStackTrace(); } return wowXHR.getMockDriver(); }
I'm using above code to create Webdriver, when I tried to login to my application with valid credentials from automation the application was throwing Invalid Credential error.
And with selenium Webdriver script the login was successful.