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

Add possibility to store things in variables #351

Closed
GuillaumeGomez opened this issue Sep 21, 2022 · 1 comment
Closed

Add possibility to store things in variables #351

GuillaumeGomez opened this issue Sep 21, 2022 · 1 comment

Comments

@GuillaumeGomez
Copy link
Owner

GuillaumeGomez commented Sep 21, 2022

Something like:

store-property: ("selector", "property", |variable_name|)
store-attribute: ("selector", "attribute", |variable_name|)
store-css: ("selector", "css", |variable_name|)
...

It'll require to check that variables |var| are correctly handled in all commands too. For example:

store-property: ("selector", "clientHeight", |clientHeight|)
assert-property: ("selector", {"scrollHeight": |clientHeight|})

Implementation details: when creating a new tests, it should clone all variables coming from the environment into a "local" dictionary so if they are modified, it won't impact other tests.

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

1 participant