amOnPage fails to navigate to fragments on Puppeteer
See original GitHub issueWhat are you trying to achieve?
Run codeceptjs instructions with a different helper: puppeteer
What do you get instead?
Timeouts to execute I am on page "/#/profile/kind/account"
Provide console output if related. Use
--verbose
mode for more details.
• I am on page "/#/profile/kind/account"
✖ FAILED in 43666ms
Provide test source code if related
I.amOnPage('/#/profile/kind/account');
Details
- CodeceptJS version: 1.1.4
- NodeJS Version: v9.5.0
- Operating System: Darwin enapupe.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64 (MacOS 10.12.6 (16G1212))
- Configuration file:
{
"output": "./output",
"helpers": {
"Puppeteer": {
"url": "https://staging.test.com",
"show": true,
"windowSize": "1300x900",
"waitForAction": 400,
"waitForTimeout": 2000,
"chrome": {
"args": ["--no-sandbox"]
}
}
},
"include": {
"Auth": "./tests/acceptance/helpers/auth.js"
},
"mocha": {},
"bootstrap": false,
"teardown": null,
"hooks": [],
"tests": "./tests/acceptance/*_test.js",
"timeout": 10000,
"name": "web"
}
To be clear, this code runs fine with WebDriverIO helper, amOnPage seems to work fine with regular paths, just fails with fragments (#).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Puppeteer - CodeceptJS
Checks that current url does not contain a provided fragment. # Parameters. url string (opens new window) value to check. ⚠️ ...
Read more >node.js - Include: dependency injection CodeceptJS/Puppeteer
I am clearly missing something related to dependency injection with CodeceptJS and Puppeteer. I am attempting to follow the docs but ...
Read more >Puppeteer - CodeceptJS
Uses Google Chrome's Puppeteer library to run tests inside headless Chrome. ... Checks that current url does not contain a provided fragment.
Read more >Customising CodeceptJS E2E tests - codeburst
CodeceptJS exposes a I.amOnPage(url) method. In CodeceptJS' source code we can easily see how this communicates with the Puppeteer and ...
Read more >builtins.Performance JavaScript and Node.js code examples
lib/helper/Puppeteer.js/Puppeteer/amOnPage. /** * {{> amOnPage }} */ async amOnPage(url) { if (! ... examples/fragment-performance/hooks.js/validateHooks.
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
Yes I’ll have one look at it in more detail. Thanks @enapupe
Thank you! LMK if I can help with anything. Thanks!