Hi guys, I am just started to do selenium test in rails. can u guys plz tell me how to write selenium test for the below code. for ex: i want to use click action in selenium test for the below code <a href="#" onClick="javascript:show_form(''short'');">Add a Short Media Buy</a> advance thx regards, Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
If you''re doing Selenium testing with Rails, take a look at my plugin that uses Selenium-RC to directly control the browser and allows you to run Selenium tests just like other tests in Rails. http://svn.viney.net.nz/things/rails/plugins/selenium_jelly As for your question, you should probably add an id to the <a> tag so that it can be easily identified. Then simply use the Selenium ''click'' command to simulate a click. -Jonathan. On 10/26/06, Narayana Karthick <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi guys, > > I am just started to do selenium test in rails. can u guys plz tell me > how to write selenium test for the below code. for ex: i want to use > click action in selenium test for the below code > > <a href="#" onClick="javascript:show_form(''short'');">Add a Short Media > Buy</a> > > advance thx > > regards, > Karthick. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jonathan Viney wrote:> If you''re doing Selenium testing with Rails, take a look at my plugin > that > uses Selenium-RC to directly control the browser and allows you to run > Selenium tests just like other tests in Rails. > > http://svn.viney.net.nz/things/rails/plugins/selenium_jelly > > As for your question, you should probably add an id to the <a> tag so > that > it can be easily identified. Then simply use the Selenium ''click'' > command to > simulate a click. > > -Jonathan.hi jonathan, thx Jone, I have another problem in selenium test. the problem is, below code successfully run in IE but, the same test doesnot run in mozilla. in mozilla it run upto ''type'' but it does not show any failiure. (note: in my Mozilla browser script has been enabled) type ''vendor'', ''bb'' key_down ''vendor'',98 key_down ''vendor'',13 wait_for_text ''vendor_auto_complete'', ''BBC TV'' verify_text ''vendor_auto_complete'',''BBC TV'' key_down ''vendor'',13 wait_for_value ''vendor'', ''BBC TV'' verify_value ''vendor'', ''BBC TV'' can u guys plz help me. advance thx, Regards, Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
that looks really promising, gonna give it a try when i come home ... Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
i''m an idiot, replied to the wrong topic. my apologies. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Narayana Karthick wrote:> Jonathan Viney wrote: >> If you''re doing Selenium testing with Rails, take a look at my plugin >> that >> uses Selenium-RC to directly control the browser and allows you to run >> Selenium tests just like other tests in Rails. >> >> http://svn.viney.net.nz/things/rails/plugins/selenium_jelly >> >> As for your question, you should probably add an id to the <a> tag so >> that >> it can be easily identified. Then simply use the Selenium ''click'' >> command to >> simulate a click. >> >> -Jonathan. > > hi jonathan, > > thx Jone, I have another problem in selenium test. the problem is, below > code successfully run in IE but, the same test doesnot run in mozilla. > in mozilla it run upto ''type'' but it does not show any failiure. > (note: in my Mozilla browser script has been enabled) > > > type ''vendor'', ''bb'' > key_down ''vendor'',98 > key_down ''vendor'',13 > > wait_for_text ''vendor_auto_complete'', ''BBC TV'' > verify_text ''vendor_auto_complete'',''BBC TV'' > > key_down ''vendor'',13 > wait_for_value ''vendor'', ''BBC TV'' > verify_value ''vendor'', ''BBC TV'' > > can u guys plz help me. > > advance thx, > Regards, > Karthick.sorry guys i had mentioned wrongly, the thing is test stops exactly at ''wait_for_text'' command not at ''type'' command in mozila browser. guys plz help me to overcome this problem advance thx regards Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Thorsten L wrote:> that looks really promising, gonna give it a try when i come home ... > > Thanks!Hi guys, Finally i found the solution for the above problem the thing is I have to use key_press command for mozilla key_down command for IE am using both commands in my test. regards, Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
hi guys i want to know how to enter date value from (java script calendar pop up window). can u guyz plz tell me how to do this in selenium test. ie(what command should i use for this?) note: i want to select/enter date value by clicking the calendar pop up window & i want to change the month & year setting. advance Thx regards, Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Have you tried using the selenium IDE? This records the actions you preform as you do them in the browser. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---