Google+ Followers

Friday, 23 January 2015

Useful calabash queries : methods to count elements / read elements and find text present


















These are queries used with UI picker view - https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPickerView_Class/index.html

Scrolling to particular row: 
query("pickerView",[{selectRow:3},{inComponent:0},{animated:1}])



Read elements from picker view
query("pickerView",:delegate, [{pickerView:nil},{titleForRow:3},{forComponent:0}])
Count Number of items in picker view

 query("pickerView",[{selectedRowInComponent:0}])



3 comments:

  1. Does query("pickerView",[{selectedRowInComponent:0}]) return an integer?

    ReplyDelete
  2. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

    selenium training in bangalore|

    ReplyDelete
  3. Hello, I think your website is great, can I just check what web host your are using? It seems a lot better than the one I am currently using. By the way, if you are going to register a business, check out the best business incorporation consultant, we can help you to accounting company today!

    ReplyDelete