I.fillField returns an error: elementHandle.type: Timeout 1000ms exceeded. elementHandle.type(<string here>)
See original GitHub issueWhat 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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.I believe this has been fixed https://codecept.io/changelog/#_3-3-1