mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-04 02:29:00 +00:00
15 lines
316 B
Ruby
15 lines
316 B
Ruby
|
class Page
|
||
|
include PageObject
|
||
|
|
||
|
a(:toggle_view_mobile, css: '.stopMobileRedirectToggle')
|
||
|
a(:toggle_view_desktop, id: 'mw-mf-display-toggle')
|
||
|
|
||
|
def toggle_mobile_view
|
||
|
toggle_view_mobile_element.when_present.click
|
||
|
end
|
||
|
|
||
|
def toggle_desktop_view
|
||
|
toggle_view_desktop_element.when_present.click
|
||
|
end
|
||
|
end
|