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

feat(web): support for parameterising injected scripts with data structures containing PageElement objects #2364

Merged
merged 14 commits into from May 12, 2024

Conversation

jan-molak
Copy link
Member

No description provided.

isPlainObject is a simple utility function that checks if the provided argument looks like a
plain-old JavaScript object
…ontaining PageElement objects

Both Page.executeScript and Page.executeAsyncScript methods now accept PageElement objects contained
within arrays and plain objects, and resolve them to instances of HTMLElement before they're passed
to the injected script. This enables writing more sophisticated injected scripts while leveraging
PEQL.
…omplex data structures

WebdriverIO script injection works differently with different automation protocols, this change
abstracts those differences away and makes the behaviour consistent.
… to the browser

as it's been replaced by the ArgumentDehydrator
@jan-molak jan-molak self-assigned this May 12, 2024
@jan-molak jan-molak merged commit 52b061e into main May 12, 2024
34 of 35 checks passed
@jan-molak jan-molak deleted the features/execute-script branch May 12, 2024 21:19
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

Successfully merging this pull request may close these issues.

None yet

1 participant