Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Aug 27, 2018
1 parent 9439031 commit 02a61ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/functional/ios/webdriver/w3c_actions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ def test_scroll
el = @@core.wait { @@driver.find_element(:accessibility_id, 'Controls') }
@@driver.action.click(el).perform

while
el = @@core.wait { @@driver.find_element(:xpath, "//XCUIElementTypeStaticText[@name='Style Default']/parent::*") }
[1, 2, 3, 4, 5].each do |value|
puts "try #{value} times"
el = @@core.wait do
@@driver.find_element(:xpath, "//XCUIElementTypeStaticText[@name='Style Default']/parent::*")
end
visibility = el.visible
break if visibility == "true"
break if visibility == 'true'
@@driver.execute_script('mobile: scroll', direction: 'down')
end
end
Expand Down

0 comments on commit 02a61ce

Please sign in to comment.