Class: OLE_QA::Framework::OLELS::E_Doc
- Inherits:
-
Page
- Object
- Common_Object
- Page
- OLE_QA::Framework::OLELS::E_Doc
- Defined in:
- lib/olels/common/e_doc.rb
Overview
An OLE Libary System E-Document page.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#set_elements ⇒ Object
Set elements common to all OLELS E-Document pages.
- #wait_for_elements ⇒ Object
Methods inherited from Page
#initialize, #lookup, #lookup_url, #open, #set_functions, #set_line, #wait_for_element, #wait_for_page_to_load
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
This class inherits a constructor from OLE_QA::Framework::Page
Instance Method Details
#set_elements ⇒ Object
Set elements common to all OLELS E-Document pages.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/olels/common/e_doc.rb', line 19 def set_elements super element(:title) {b.h1(:class => 'uif-headerText').span(:class => 'uif-headerText-span')} element(:description_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Description:')]]/following-sibling::td[1]/descendant::input[1]")} element(:explanation_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Explanation:')]]/following-sibling::td[1]/descendant::textarea[1]")} element(:org_doc_number_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Organization Document Number:')]]/following-sibling::td[1]/descendant::input[1]")} element(:document_id) {b.span(:xpath => "//table[@class='uif-gridLayout']/descendant::th[span/label[contains(text(),'Document Number:')]]/following-sibling::td[1]/div/span")} element(:initiator_id) {b.span(:xpath => "//table[@class='uif-gridLayout']/descendant::th[span/label[contains(text(),'Initiator Network Id:')]]/following-sibling::td[1]/div/span")} element(:document_status) {b.span(:xpath => "//table[@class='uif-gridLayout']/descendant::th[span/label[contains(text(),'Document Status:')]]/following-sibling::td[1]/div/span")} element(:creation_timestamp) {b.span(:xpath => "//table[@class='uif-gridLayout']/descendant::th[span/label[contains(text(),'Creation Timestamp:')]]/following-sibling::td[1]/div/span")} end |
#wait_for_elements ⇒ Object
31 32 33 34 35 |
# File 'lib/olels/common/e_doc.rb', line 31 def wait_for_elements super @wait_on << :title @wait_on << :document_id end |