Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click with waitForEvents cause Timeout error #2571

Open
Ramin-Bateni opened this issue Apr 9, 2022 · 1 comment
Open

Click with waitForEvents cause Timeout error #2571

Ramin-Bateni opened this issue Apr 9, 2022 · 1 comment

Comments

@Ramin-Bateni
Copy link

Ramin-Bateni commented Apr 9, 2022

I'm using Gauge and Taiko (v1.3.2).

Gauge version: 1.4.3
Commit Hash: f98dd40

Plugins:
html-report (4.1.4)
js (2.4.0)
screenshot (0.1.0)

I have a form that have a Save button. I want click the Save button and make sure that the form is fully submitted. So I used the following code:

await click('Save' , {
            waitForEvents: ['firstMeaningfulPaint'],
            navigationTimeout:40000}); 

The Gauge timeout in js.properties is:
test_timeout = 40000

What actually happen:
The Save button being clicked and the form submit. Also it navigate to the next page and wait there. The page loads and you can see the elements of the page. after some moments its return this error:

image

@NivedhaSenthil
Copy link
Member

Does the script work from Taiko's repl ? How much time does it take in that case ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants