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

前端 未结 4 881
甜味超标
甜味超标 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 13:01

    add step definitions

    Then /^I scroll to cell with "([^\"]*)" label$/ do |name|
        wait_poll(:until_exists => "label text:'#{name}'", :timeout => 20) do
        scroll("tableView", :down)
        end
    end
    

    to the ProjectName/features/step_definitions/my_first_steps.rb ruby file and In your calabash script add

    Then I scroll to cell with "AAA" label
    

    its working fine for me.

提交回复
热议问题