I am new to Serenity BDD framework. I was given a test automation framework that is not in use for quite a while.
I have latest Firefox ver 59 and Chrome ver 66 on my machine. I have Selenium 3.11. I know the Selenium 3 has to use the gecko driver for firefox.
The problem I am facing is that Selenium script launches firefox but is not navigating to the page and get this exception
FAILED net.thucydides.core.webdriver.UnsupportedDriverException
My serenity-core in dependencies is latest version serenity-core:1.9.14
I want to specify the gecko driver and test but don't know how to do it in my scenario below. I would request for help in configuring the gecko driver in this specific scenario. Following is my project structure
Features package -
@RunWith(SerenityRunner.class) public class TestCaseName @Managed WebDriver driver; @Steps LoginSteps loginSteps @Test public void userLogin() { loginSteps.userLogsIn(); }
Step class -
LoginPage loginPage
@Step
public void usedLogsIn()
{
loginPage.open();
}
PageObject class -
@DefaultUrl("The application url is mentioned here")
public class LoginPage extends net.serenitybdd.core.pages.PageObject
net.serenitybdd.core.pages.PageObject class has the following open method -
final public void open() {
open(OpenMode.CHECK_URL_PATTERNS)
}
Could somebody please clarify the below things
- 1. Are latest versions of Firefox and Chrome supported?
- 2. If supported, where should I specify the gecko driver and chrome driver in the above code that I am using? Generally we do it using System.property. But I am not aware where to mention them in the above scenario.
- Regards
- Srinivas