my $tries = 0;
while($tries < 5) {
eval {
+ # if we don't create the ::Selenium object ourselves, then
+ # wikifixture shuts the session down after the first test table
+ # is run, at which point KABOOM when you try and run a second one.
$self->{src} = Socialtext::WikiFixture::Selenese->new(
- host => $self->{selenium_rc}{host},
- port => $self->{selenium_rc}{port},
- browser => $self->{browser},
- browser_url => $self->{app_base},
+ selenium => Test::WWW::Selenium->new(
+ host => $self->{selenium_rc}{host},
+ port => $self->{selenium_rc}{port},
+ browser => $self->{browser},
+ browser_url => $self->{app_base},
+ )
);
};
$tries++;