Skip Menu |
 

This queue is for tickets about the Test-WWW-Selenium CPAN distribution.

Report information
The Basics
Id: 23206
Status: resolved
Priority: 0/
Queue: Test-WWW-Selenium

People
Owner: Nobody in particular
Requestors: Bernhard.Schmalhofer [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.04
Fixed in: (no value)



Subject: Method select_frame is missing
Download (untitled) / with headers
text/plain 278b
Hi, I'm start to test my frame based webapplication with Selenium. After some hassle I looks fine now. My starting point was a Perl testscript generated with Selenium IDE. Looks good. One thing I had to add in WWW::Selenium was the command 'selectFrame'. A patch is attached.
Subject: select_frame.patch
Download select_frame.patch
text/x-diff 981b
diff -u -r Test-WWW-Selenium-1.04/lib/WWW/Selenium.pm Test-WWW-Selenium-1.05_devel/lib/WWW/Selenium.pm --- Test-WWW-Selenium-1.04/lib/WWW/Selenium.pm 2006-10-06 07:47:21.000000000 +0200 +++ Test-WWW-Selenium-1.05_devel/lib/WWW/Selenium.pm 2006-11-14 10:01:07.000000000 +0100 @@ -813,6 +813,26 @@ } +=item * $sel-E<gt>select_frame($locator) + +Selects a frame within the current window. (You may invoke this command +multiple times to select nested frames.) To select the parent frame, +use "relative=parent" as a locator; +to select the top frame, use "relative=top". + +You may also use a DOM expression to identify the frame you want directly, +like this: dom=frames["main"].frames["subframe"] + +$locator is an element locator identifying a frame or iframe. + +=cut + +sub select_frame { + my $self = shift; + $self->do_command('selectFrame', @_); +} + + =item * $sel-E<gt>wait_for_pop_up($window_i_d, $timeout) Waits for a popup window to appear and load up.
From: LUKEC [...] cpan.org
Download (untitled) / with headers
text/plain 651b
On Tue Nov 14 04:18:05 2006, Bernhard.Schmalhofer@gmx.de wrote: Show quoted text
> Hi, > > I'm start to test my frame based webapplication with Selenium. After some > hassle I looks fine now. My starting point was a Perl testscript > generated with Selenium IDE. Looks good. > > One thing I had to add in WWW::Selenium was the command 'selectFrame'. > A patch is attached.
select_frame will be released in the next version of the driver. You can obtain the nightly build of Test-WWW-Selenium here: http://release.openqa.org/selenium-remote-control/nightly/ I'm waiting for Selenium-RC server to become stable before I ship the next version to CPAN. HTH, Luke
Subject: Re: [rt.cpan.org #23206] Method select_frame is missing
Date: Tue, 14 Nov 2006 20:13:12 +0100
To: bug-Test-WWW-Selenium [...] rt.cpan.org
From: Bernhard Schmalhofer <Bernhard.Schmalhofer [...] gmx.de>
Download (untitled) / with headers
text/plain 368b
Luke Closs via RT schrieb: Show quoted text
> select_frame will be released in the next version of the driver. You > can obtain the nightly build of Test-WWW-Selenium here: > > http://release.openqa.org/selenium-remote-control/nightly/ >
Ah, that makes sense. Use the nightly build of WWW::Selenium when using the nightly build of the proxy. Thanks for the pointer, Bernhard
select_frame is now present.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.