NoMethodError: undefined method `wait_for_view' for #<DeviceAgent API: 1.2.2>
seshusangeetha opened this issue · 1 comments
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>
can you kindly help us with the usage of the same
Thanks
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