Ruby on Rails
Thursday, May 28, 2015
Sent from my iPhone
As I suggested, I'd change CSS to an ID and see what it will give.but that's exactly what I want! I know that sometimes the element will not appear on the screen, so I need it to run another method, it is exactly this treatment I am trying to do. for this reason I put the IF condition. If the element exists, takes an action, orexists, performs the following method. Just to be clear, how would you do this?
Then I would check if there is no typo in CSS you of the button under test.
If there is still a weird behaviour I would try another gem, e.g. capybara, phantom JS, etc.
Take a try and come back with your results.
Em quinta-feira, 28 de maio de 2015 11:10:14 UTC-3, Javix escreveu:--The error points it out clearly that the element does not exist on the page. Try to check the html CSS code to compare with one you test.
Sent from my iPhoneHey Scott,--I've tried without displayed but appears the same error.
Em quinta-feira, 28 de maio de 2015 09:24:20 UTC-3, Scott Ribe escreveu:On May 28, 2015, at 6:15 AM, Rafael s <rafae...@gmail.com> wrote:
>
> I want to just make one condition: IF find the button...clicks, else continues execution of the other methods
If the button doesn't exist, you're calling displayed? on it anyway.
--
Scott Ribe
scott...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/ .LyRY6Xm0nl4/unsubscribe
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com .
To post to this group, send email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .38c137c3-e1cc-44b4-b9ca- 8f592543a9da%40googlegroups. com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/LyRY6Xm0nl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a1f9f8d0-3b42-440a-843d-061cc6b50088%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment