Appium Swipe - NetBeans with Ruby (iOS)

170 views
Skip to first unread message

Tanner F

unread,
Jul 9, 2013, 7:06:35 PM7/9/13
to appium-...@googlegroups.com
Hello, I am trying to get a swipe to work on iOS using Ruby on NetBeans (yes I am aware of it not being supported).

I want to create a 'swipe' function  that goes from (StartX, StartY) to (EndX, EndY), not within a specific element. However I am unsure as to how to write the code that will correlate to a swipe appium correctly.

So far I have tried something roughly like this within a class and file called control:   

def swipe(startX, startY, endX, endY, element)
   
  end

Within the actual call looking something like this:
def self.SwipeArcDrawer()
    swipe(448.0,931.2, 115.2, 921.6, archiveswatchBtn)
  end

I have not seen much documentation of my specific case to help.

Let me know of any questions you have, thanks in advance!

bootstrap online

unread,
Jul 9, 2013, 9:30:27 PM7/9/13
to Tanner F, appium-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages