-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not click on button after view animated #270
Comments
Have you ever found a solution for this? |
Well, this sometimes happens when you attempt tapping control while it is still part of animation sequence. Try this approach in your step definition:
|
Thanks a lot! That seems to help indeed, the error disappeared, but now, the problem is On Mon, Jan 19, 2015 at 3:02 PM, Oleksiy Radyvanyuk <
|
Do you have an output in console showing what kind of issue occurs when your scenario is executed? |
The cell is just not pressed, since the action associated just does not happen. Here is what I wrote: So, the element does exist, but it is not touched in the end. |
Try change your cell selector to this:
|
Thanks a lot for your help, but with that, I have the following error:
Frank/features/step_definitions/launch_steps.rb:5 Athought the selector seems ok as you can see in this symbiote screenshot: https://www.dropbox.com/s/7amz0u96shj6gnd/Screenshot%202015-01-19%2015.35.03.png?dl=0 On Mon, Jan 19, 2015 at 3:27 PM, Oleksiy Radyvanyuk <
|
So if you while on that same screen in Symbiote, will press "Touch" button for this selector - will the action happen? |
Yes, that works. On Mon, Jan 19, 2015 at 3:39 PM, Oleksiy Radyvanyuk <
|
Hm, it seems to me this is pure timing issue related to animation. Maybe, in order to not waste your time on this, just add some delay with "sleep 0.5" for example, right before touching the cell. Otherwise I have no fresh ideas on why tapping the cell from code does not happen for you. |
You were right, it's related to the animation. Actually, I just noticed Thanks a lot for your time! On Mon, Jan 19, 2015 at 3:44 PM, Oleksiy Radyvanyuk <
|
Oh, if adding call to |
I don't think we use such thing, but maybe one of the libraries we use do. On Mon, Jan 19, 2015 at 3:51 PM, Oleksiy Radyvanyuk <
|
|
Yes, and not only refresh control, but also with any |
Don't wait random times, don't wait for everything. Make specific wait selectors. You don't have to wait for everything to stop animating. Create a selector for the view that you expect to be animating and wait for it. If you want to touch a button, don't wait for animations, wait for the button to become touchable (there is a selector for that, something like FEX_isTouchable). |
Ok, thanks a lot for all this information, it is very precious to me! On Tue, Jan 20, 2015 at 12:09 PM, Ondrej Hanslik [email protected]
|
Thank a lot @oradyvan |
My apologies, I have stopped working with Frank quite a long time ago, so I have no answer to your question. |
Hi everybody!
I try to click button after my view controller animated , but it's not working , and this is errors:
When I touch on the "menu icon" button after animate # Frank/features/step_definitions/frank_steps.rb:77 frankly_map button marked:'menu icon' touch failed because: encountered error while attempting to perform touch on selected elements View not touched because it would not be the recipient of the touch event - consider FEX_forcedTouch instead (touch recipient: 0x989cef0#UIView) (RuntimeError) ./Frank/features/step_definitions/frank_steps.rb:81:in /^I touch on the "([^\"]*)" button after animate$/' Frank/features/main.feature:213:in 'When I touch on the "menu icon" button after animate'
And this is my custom frank step:
When /^I touch on the "([^\"]*)" button after animate$/ do |mark| wait_for_nothing_to_be_animating selector = "button marked:'#{mark}'" if check_element_exists(selector) touch(selector) end end
please help me !!!!
The text was updated successfully, but these errors were encountered: