aurelien-reeves
Hi
Thanks for replying.
What is needed to providing?
May I give all the pipeline's output?
This is my file which has the driver configurations.
And This is that file after adding the chromeDriver headLess option.
As you can see, I added the chromeDriver headLess option.
Before adding, everything is worked in IDE mode.
But when I add the chromeDriver headLess option, I face this error in the testNG's report:
feature (Login into account)
cucumber.runtime.CucumberException: java.lang.AssertionError: Unable to wait and click on the WebElement, using locator: <Proxy element for: DefaultElementLocator 'By.linkText: Sign in'>
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:69)
at cucumber.api.testng.AbstractTestNGCucumberTests.feature(AbstractTestNGCucumberTests.java:21)
Caused by: java.lang.AssertionError: Unable to wait and click on the WebElement, using locator: <Proxy element for: DefaultElementLocator 'By.linkText: Sign in'>
at org.junit.Assert.fail(Assert.java:89)
at pageObjects.BasePage.waitAndClickElement(BasePage.java:59)
at pageObjects.Login_page.clickOnSignInButton(Login_page.java:35)
at stepDefinitions.LoginSteps.user_clicks_on_the_login_button_on_homepage(LoginSteps.java:18)
at ✽.And User clicks on the login button on homepage(Login.feature:6)
... Removed 28 stack frames
(Runs Cucumber Feature)
I didn't run the test in GitLab mode. because first, I want to solve the problem in IDE mode.
I'm so new, please guide me.
Thanks in advanced.