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

fix receipe 151 #69

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/section_15/recipe151_working_with_browser_contexts.robot
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,29 @@ Documentation PROBLEM:
... $ pip install -U robotframework-browser
... $ rfbrowser init
Library Browser
Force Tags no-ci-testing
Force Tags py3.7 py3.8 py3.9

*** Variables ***
${recipe} Recipe 15.1 Working With Browser Contexts
${level} Intermediate
${category} External Library: Browser
@{permissions} geolocation

*** Test Cases ***
Context with Geolocation set to Helsinki
New Context geolocation={'latitude': 60.1698, 'longitude': 24.9386} permissions=['geolocation'] ignoreHTTPSErrors=True
New Context geolocation={'latitude': 60.1698, 'longitude': 24.9386} permissions=${permissions} ignoreHTTPSErrors=True
New Page https://www.openstreetmap.org/
Click span.icon.geolocate
Wait Until Network Is Idle
Take Screenshot

Context with Geolocation set to Sydney
New Context geolocation={'latitude': -33.8675, 'longitude': 151.207} permissions=['geolocation'] ignoreHTTPSErrors=True
New Context geolocation={'latitude': -33.8675, 'longitude': 151.207} permissions=${permissions} ignoreHTTPSErrors=True
New Page https://www.openstreetmap.org/
Click span.icon.geolocate
Wait Until Network Is Idle
Take Screenshot

*** Comments ***
# TODO: There is a bug in Browser library which is causing CI problems - commenting out this test case
Context with no Geolocation Permission
New Context
New Page https://www.openstreetmap.org/
Expand Down