yashaka / selene

User-oriented Web UI browser tests in Python
https://yashaka.github.io/selene/
MIT License
676 stars 145 forks source link

consider adding query.frame_context #523

Open yashaka opened 2 months ago

yashaka commented 2 months ago

example of usage:


with browser.element('#my-frame').get(query.frame_context):
    # here implicitly happens switch_to_frame
    browser.element('#my-element-inside-my-frame').click()
# here implicitly happens switch_to_default_content