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

Highlight an element throws a warning #8

Open
ndrsfrr opened this issue Nov 20, 2018 · 1 comment
Open

Highlight an element throws a warning #8

ndrsfrr opened this issue Nov 20, 2018 · 1 comment

Comments

@ndrsfrr
Copy link

ndrsfrr commented Nov 20, 2018

WHEN I execute tests with following selectors
THEN I get a warning in the console and logs

Example selectors:
//a[text()="Nutzungsbedingungen"]
//a[@Class="PersonalDataPageAgreementSection-link"][text()="Vorab-Informationen"]
input[testid="from"]

Drivers
WebdriverIO
Puppeteer

Warning:
WARNING Failed to highlight element [object Object] Error: Evaluation failed: DOMException: Failed to execute 'querySelectorAll' on 'Document': '[object Object]' is not a valid selector.
at querySel (puppeteer_evaluation_script:24:29)
at puppeteer_evaluation_script:34:17
at ExecutionContext.evaluateHandle (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\ExecutionContext.js:106:13)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
-- ASYNC --
at ExecutionContext. (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\helper.js:144:27)
at ExecutionContext.evaluate (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\ExecutionContext.js:58:31)
at ExecutionContext. (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\helper.js:145:23)
at Frame.evaluate (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\FrameManager.js:439:20)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
-- ASYNC --
at Frame. (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\helper.js:144:27)
at Page.evaluate (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\Page.js:728:43)
at Page. (C:\git\ui-tests-desktopapp\node_modules\puppeteer\lib\helper.js:145:23)
at Puppeteer.executeScript (C:\git\ui-tests-desktopapp\node_modules\codeceptjs\lib\helper\Puppeteer.js:1163:29)
at BifrostIOHelper._beforeStep (C:\git\ui-tests-desktopapp\node_modules\bifrost-io\codeceptjs\dashboard_helper.js:234:26)
at recorder.add (C:\git\ui-tests-desktopapp\node_modules\codeceptjs\lib\listener\helpers.js:21:69)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

@hubidu hubidu pinned this issue Dec 20, 2018
@hubidu
Copy link
Owner

hubidu commented Dec 20, 2018

Working on it

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

No branches or pull requests

2 participants