How to handle alert box message in selenium test?

hi guys,

how to handle alert box message in selenium test?

i want to handle alert box. i want to test(verify text present) the
text in alert box & then click ok to alert box. how can i do this.? plz
tell me…

advance thx.

regards,
karthick.

Narayana K. wrote:

hi guys,

how to handle alert box message in selenium test?

i want to handle alert box. i want to test(verify text present) the
text in alert box & then click ok to alert box. how can i do this.? plz
tell me…

advance thx.

regards,
karthick.

hi guys,

i found the answer for my problem.

by using the below code in your .rsel file, we can pass the test.
assert_alert_present
verify_alert ‘alert message’

thx,
regards,
Karthick.