Removed random page

Using a dedicated page instead of a random page. Paired  with Amir
Aharoni.
Bug: 62479
Change-Id: I3750ecf972f52f205fd30855455ef6259b9c911d
This commit is contained in:
Zeljko Filipin
2014-03-11 16:13:16 +01:00
parent 3797187998
commit b4af650730
13 changed files with 35 additions and 47 deletions

View File

@@ -4,7 +4,20 @@ class MainPage
include URL
page_url URL.url("Main_Page")
def non_interlanguage_links_use_autonym_font?
span(:cog, title: "Language settings")
a(:create_a_book, text: "Create a book")
a(:download_as_pdf, text: "Download as PDF")
a(:download_the_file, text: "Download the file")
li(:main_page, id: "n-mainpage-description")
div(:asia, id: "AS")
a(:malayalam) do |page|
page.asia_element.element.li(lang: "ml")
end
a(:print_export, text: "Print/export")
a(:printable_version, text: "Printable version")
button(:search_button, id: "searchButton")
def non_interlanguage_links_use_autonym_font?
@browser.elements(css: "#p-lang li:not(.interlanguage-link)").collect do |element|
element.style("font-family")
end.to_s.match(/Autonym/) != nil