Ruby[IOS]How to swipe horizontal

Hi All,

I want to scroll horizontal against UIAScrollView. Tried the below method didn’t work

driver.execute_script(“mobile: swipe”, startX: 10, startY: 10, endX: 50, endY: 10, duration: 0.5)

got exception as

post /execute
{
:script => “mobile: swipe”,
:args => [
[0] {
:startX => 10,
:startY => 10,
:endX => 50,
:endY => 10,
:duration => 0.5
}
]
}
Selenium::WebDriver::Error::UnknownError: Not yet implemented. Please help us: http://appium.io/get-involved.html
from /Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok’

@bootstraponline can you please on the ruby binding

The mobile methods have been replaced with touch actions. See the docs or the Ruby unit tests for more info.

1 Like