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

Preferred way of performing action on view before reading? #158

Open
mirekdlugosz opened this issue Sep 5, 2019 · 0 comments
Open

Preferred way of performing action on view before reading? #158

mirekdlugosz opened this issue Sep 5, 2019 · 0 comments

Comments

@mirekdlugosz
Copy link

In Satellite, we have a page with multiple tabs. One of the tabs has two checkboxes and their state determines content of table below. Checkboxes state is reset when you switch out of the tab.

In our automation, page is modelled as view and each tab is nested view.

What is preferred way of reading the page content, with setting said checkboxes at the same time?

read() methods don't take any arguments, so I can't pass in the value that would force the action before reading. I can read selected tabs, call page.tab.widget.update() and read page.tab again while it's active, but it feels like leaking framework details into test code. Then there is this solution, which I find awkward.

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