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.

amOnPage fails to navigate to fragments on Puppeteer

See original GitHub issue

What 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
reubenmillercommented, Mar 13, 2018

Yes I’ll have one look at it in more detail. Thanks @enapupe

0reactions
enapupecommented, Mar 13, 2018

Thank you! LMK if I can help with anything. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

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