Continuing the discussion from Duplicate step definition when they are actually different methods:
This is the methods I have
HMDA_Transmittal_Apply Filter{
def ToLogIn() {
@Given(“I am logged into HMDA Transmittal with email and password”)
def ToLogIn() {
WebUI.openBrowser('')
WebUI.navigateToUrl(GlobalVariable.URL)
/
}
}
THE OTHER ONE IS
class HMDA_Transmittal_Exclude_Smoke {
//Call login steps in feature 03 environment
@Given("I am logged into HMDA Transmittal with email and password")
def **navigateToLogInPage**() {
WebUI.openBrowser('')
WebUI.navigateToUrl(GlobalVariable.URL)
}