Class: CoPilot::BuildsDashboard
- Inherits:
-
Object
- Object
- CoPilot::BuildsDashboard
- Defined in:
- lib/copilot/requests/internal/builds_dashboard.rb
Instance Method Summary collapse
- #builds_table ⇒ Object
- #builds_table_rows ⇒ Object
- #goto ⇒ Object
- #header_div ⇒ Object
-
#initialize(browser, bundle_id) ⇒ BuildsDashboard
constructor
A new instance of BuildsDashboard.
- #more_builds ⇒ Object
- #more_builds_link ⇒ Object
- #next_page ⇒ Object
- #next_page_link ⇒ Object
Constructor Details
#initialize(browser, bundle_id) ⇒ BuildsDashboard
Returns a new instance of BuildsDashboard.
4 5 6 7 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 4 def initialize(browser, bundle_id) @browser = browser @bundle_id = bundle_id end |
Instance Method Details
#builds_table ⇒ Object
17 18 19 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 17 def builds_table @builds_table ||= header_div.parent.tables[bundle_index] end |
#builds_table_rows ⇒ Object
21 22 23 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 21 def builds_table_rows builds_table.trs(id: /\/dashboard\/builds\/report\/\d+\//) end |
#goto ⇒ Object
9 10 11 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 9 def goto b.goto 'https://www.testflightapp.com/dashboard/builds' end |
#header_div ⇒ Object
13 14 15 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 13 def header_div @header_div ||= header_divs[bundle_index] end |
#more_builds ⇒ Object
38 39 40 41 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 38 def more_builds link = more_builds_link link.click if link end |
#more_builds_link ⇒ Object
34 35 36 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 34 def more_builds_link builds_table.as(text: 'more')[0] end |
#next_page ⇒ Object
29 30 31 32 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 29 def next_page link = next_page_link link.click if link end |
#next_page_link ⇒ Object
25 26 27 |
# File 'lib/copilot/requests/internal/builds_dashboard.rb', line 25 def next_page_link builds_table.as(title: 'Next Page')[0] end |