calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

NoMethodError: undefined method `wait_for_view' for #<DeviceAgent API: 1.2.2> #1366

Closed seshusangeetha closed 6 years ago

seshusangeetha commented 6 years ago

Hi, As suggested with the usage document for device agent tried using the device_agent.wait_for_view method for element_exists to assert the presence of an element but have been presented with the below error NoMethodError: undefined method `wait_for_view' for #<DeviceAgent API: 1.2.2>

screen shot 2018-02-02 at 4 48 49 pm

can you kindly help us with the usage of the same

Thanks

jmoody commented 6 years ago

I am adding a wait API to the next release of Calabash.

However, this is probably the last time some one at MSFT will add behavior to Calabash.

If you want to expand Calabash features, you have to do so yourself.

You can find the DeviceAgent HTTP API (including a wait API) in run-loop:

https://github.com/calabash/run_loop/blob/develop/lib/run_loop/device_agent/client.rb