How do i scroll a UITable view down until i see a cell with label “Value” in Calabash

前端 未结 4 885
甜味超标
甜味超标 2021-01-21 12:40

How do i scroll a UITableView down until i see a cell with label \"Value\" in Calabash/Cucumber. I\'ve been trying to do it using:

      Then          


        
4条回答
  •  爱一瞬间的悲伤
    2021-01-21 12:58

    following should also work

    Then(/^I scrolldown until "(.*?)" is visible$/) do |arg1|
      until query("lable text:'#{arg1}'").length > 0
        scroll("tableView", :down)
      end
    end
    

    Call this by following

    Then I scrolldown until "XY" is visible
    

提交回复
热议问题