Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

The method isVisible(selector[, options]) from a Page object throws an exception. #939

Closed
Uva-h opened this issue Jun 16, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Uva-h
Copy link

Uva-h commented Jun 16, 2023

Brief summary

The method isVisible(selector[, options]) from a Page object throws an exception when the given selector is not found instead of returning the boolean false which is the expected outcome.

xk6-browser version

latest/main

OS

Windows 11

Chrome version

114.0.5735.134

Docker version and image (if applicable)

No response

Steps to reproduce the problem

page.isVisible("//h1[contains(text(),'This string doesn't exists')]");

Expected behaviour

For a boolean false statement to be return and the code to continue execution.

Actual behaviour

Function throws an exception and stops execution.

@Uva-h Uva-h added the bug Something isn't working label Jun 16, 2023
@ka3de
Copy link
Collaborator

ka3de commented Aug 8, 2023

Closing as duplicate of #981.

@ka3de ka3de closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2023
@inancgumus inancgumus added the duplicate This issue or pull request already exists label Aug 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants