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}])



8 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
  4. Anda ingin membangun rumah...?
    Kami menyediakan
    jasa pembangunan rumah
    profesional.

    Kami juga menyediakan
    jasa pemborong rumah
    bergaransi.

    ReplyDelete
  5. Jual portal parkir terbaik seindonesia.

    di Medan kami juga menydiakan portal parkir medan harga murah

    ReplyDelete
  6. Jasa pengecatan marka jalan terbaik hanya mitra dua.

    jasa marka jalan jakarta terbaik saat ini.

    ReplyDelete
  7. Jasa waterproofing sika memakai semua produk dari Sika buat melaksanakan waterproofing dari dini sampai akhir. Di bumi waterproofing, Sika memanglah telah tidak asing lagi.
    atau anda ingin tanya harga cat epoxy, bisa langsung hubungi kami.

    ReplyDelete
  8. Tidak hanya Jakarta saja yang sudah menggunakan cat epoxy lantai, di Medan juga sudah banyak yang menggunakan cat epoxy lantai,
    kami menyediakan jasa epoxy lantai medan yang terpercaya dan bergaransi.

    ReplyDelete