Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new methods to improve the handling of screen elements and selectors in the
tir/technologies/webapp_internal.py
file. The changes focus on adding methods to check the presence of various screens and to retrieve their selectors, as well as updating existing methods to utilize these new methods.New methods for handling screen elements and selectors:
check_screen_element
,coin_screen_selectors
,warning_screen_selectors
,news_screen_selectors
,browse_screen_selectors
, andget_screen_selectors
methods to check and retrieve selectors for different screens.check_browse_screen
,check_coin_screen
,check_warning_screen
,check_news_screen
, andcheck_screen
methods to check if specific screens are displayed.Updates to existing methods:
close_coin_screen
to use the newcoin_screen_selectors
andcheck_coin_screen
methods.close_coin_screen_after_routine
to check if any screen is displayed using the newcheck_screen
method.close_warning_screen
to use the newwarning_screen_selectors
andcheck_warning_screen
methods.close_warning_screen_after_routine
to check if any screen is displayed using the newcheck_screen
method.close_news_screen
to use the newnews_screen_selectors
andcheck_news_screen
methods.close_news_screen_after_routine
to check if any screen is displayed using the newcheck_screen
method.Enhancements to
element_exists
method:element_exists
method to set a default value for themain_container
parameter if it is not provided. [1] [2]