mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-26 08:46:50 +00:00
46f2d7c46d
Identify the first heading better Change-Id: Idb029c43b20915022f4d566a7795c3e0ec55cea2
16 lines
508 B
Ruby
16 lines
508 B
Ruby
class ArticlePage
|
|
include PageObject
|
|
include URL
|
|
page_url URL.url('<%=params[:article_name]%><%=params[:hash]%>')
|
|
|
|
h1(:first_heading, id: 'firstHeading')
|
|
li(:flyout_link_container, css: '#pt-notifications')
|
|
a(:flyout_link, css: '#pt-notifications a')
|
|
div(:flyout, css: '.mw-echo-overlay')
|
|
|
|
# Overlay header
|
|
a(:alert_tab_link, css: '.mw-echo-overlay-title ul li a', index: 1)
|
|
button(:mark_as_read, css: '.mw-echo-notifications > button')
|
|
a(:messages_view_link, css: '.mw-ui-active')
|
|
end
|