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
advance thx
regards,
Karthick.
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
advance thx
regards,
Karthick.
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 tag so
that
it can be easily identified. Then simply use the Selenium ‘click’
command to
simulate a click.
-Jonathan.
Jonathan V. 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 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.
Narayana K. wrote:
Jonathan V. 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 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’,13wait_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.
that looks really promising, gonna give it a try when i come home …
Thanks!
i’m an idiot, replied to the wrong topic. my apologies.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs