Quality is delighting customers
Hello QA,
Can anybody help on "Handling New Windows" in Selenium Webdriver" please... .
Thanks,
Ravi.
Tags:
Hi,
It could be done by using "get_window_handles" method. It retrieve the list of window handles used in the session.
In Perl language it can be done using the following code
my
$handles
=
$driver
->get_window_handles;
$driver
->switch_to_window(
$handles
->[1]);
$driver
->
close
;
$driver
->switch_to_window(
$handles
->[0]);
Thanks and regards
Amit Nimje : Infocepts Pvt Ltd
© 2021 Created by Quality Testing.
Powered by