widgetastic.core icon indicating copy to clipboard operation
widgetastic.core copied to clipboard

Preferred way of performing action on view before reading?

Open mirekdlugosz opened this issue 6 years ago • 0 comments

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.

mirekdlugosz avatar Sep 05 '19 15:09 mirekdlugosz