We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6551329 commit 9439031Copy full SHA for 9439031
test/functional/ios/webdriver/w3c_actions_test.rb
@@ -24,6 +24,18 @@ def test_tap
24
rect = el.rect
25
@@driver.action.click_and_hold(el).move_to_location(rect.x, rect.y + 500).release.perform
26
end
27
+
28
+ def test_scroll
29
+ el = @@core.wait { @@driver.find_element(:accessibility_id, 'Controls') }
30
+ @@driver.action.click(el).perform
31
32
+ while
33
+ el = @@core.wait { @@driver.find_element(:xpath, "//XCUIElementTypeStaticText[@name='Style Default']/parent::*") }
34
+ visibility = el.visible
35
+ break if visibility == "true"
36
+ @@driver.execute_script('mobile: scroll', direction: 'down')
37
+ end
38
39
40
41
0 commit comments