question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I.fillField returns an error: elementHandle.type: Timeout 1000ms exceeded. elementHandle.type(<string here>)

See original GitHub issue

What are you trying to achieve?

I am trying to login, and will type the username and password I.fillField(), and should be able to successfully login. My string contains 42 characters

What do you get instead?

While typing the username which contains 42 characters, the system returns an error: elementHandle.type: Timeout 1000ms exceeded

Error message returned:

elementHandle.type: Timeout 1000ms exceeded.
=========================== logs ===========================
elementHandle.type("<my username here which consists 42 characters>")
============================================================

Sample code:

Feature("Login");

Scenario("Login code here", ({ I }) => {
  I.amOnPage("/");
  I.fillField(`//input[@id='username']`, "test-email-sandbox1@yopmail.com.inbox.mail");
  I.fillField(`//input[@id='password']`, secret("passwordhere"));
  I.click(`Log In`);
});

Details

  • CodeceptJS version: 3.3.0
  • NodeJS Version: 14.17.5
  • Operating System: Windows 10
  • Playwright: 1.19.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ecastorcommented, Feb 20, 2022

Thanks a lot @mirao, setting timeout under the Playwright helper fixed my issue.

I also agree to @ngraf, this can be improved by increasing the timeout as there are tests wherein we are required to type strings that has a lot of characters. Or maybe have an additional argument under the fillField function that we can explicitly add timeout depending on the string we will be inputting.

1reaction
PeterNgTrcommented, May 5, 2022

I believe this has been fixed https://codecept.io/changelog/#_3-3-1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright - CodeceptJS
Retrieves an attribute from an element located by CSS or XPath and returns it to test. Resumes test execution, so should be used...
Read more >
ElementHandle | Playwright - CukeTest
ElementHandle prevents DOM element from garbage collection unless the handle is disposed with ... If no elements match the selector, returns empty array....
Read more >
Playwright's "await locator.click()" fails with timeout. Why?
click: Timeout 30000ms exceeded. The HTML segment with the field I want is this input component with id="focus-input": <input _ngcontent ...
Read more >
WebDriver - Codeception - Documentation
Here's how to load just the “services” part from e.g. Symfony: modules: enabled: - WebDriver ... Locates element using available Codeception locator types:....
Read more >
API Reference — Pyppeteer 0.0.25 documentation
type (string): Script type. Use module in order to load a JavaScript ES6 module. Return ElementHandle:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found