to capture alert in ruby

25 views
Skip to first unread message

Jyothi Parvathi

unread,
Feb 9, 2010, 12:44:39 AM2/9/10
to selenium-ruby
Please tell me how to capture the laerts in ruby

Tze Yang Ng

unread,
Feb 9, 2010, 2:24:39 AM2/9/10
to seleni...@googlegroups.com
Not sure what is meant by "capture the alerts in ruby" ... are u
referring to the text inside the alert ? U can do it using:

browser = Selenium::Client::Driver.new(...)
alert_text = browser.alert

according to the doc at http://selenium-client.rubyforge.org/,
selenium won't pop up the alert that one would expect.

TY

==

On Tue, Feb 9, 2010 at 1:44 PM, Jyothi Parvathi
<parvath...@gmail.com> wrote:
> Please tell me how to capture the laerts in ruby
>

> --
> You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
> To post to this group, send email to seleni...@googlegroups.com
> To unsubscribe from this group, send email to selenium-rub...@googlegroups.com
> For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
> For Selenium related questions like Core, Server, and RC client in other language, please go to http://clearspace.openqa.org/community/selenium

--
http://tyenglog.blogspot.com
http://ngty77.blogspot.com

Reply all
Reply to author
Forward
0 new messages