Help for this page

Select Code to Download


  1. or download this
    use EventRepository;
    
    my $er = EventRepository->new(launch => 'firefox', activate => 1);
    $er->get('http://google.com');
    
  2. or download this
    use Moose;
    extends 'FFMech';
    ...
      my ($self, $url) = @_;
      $self->SUPER::get($url, synchronize => 0);
    }
    
  3. or download this
    $ENV{'DISPLAY'} = ':0.0'; #allows script to run when called from remot
    +e terminal window
    use X11::GUITest qw/SendKeys FindWindowLike ClickWindow SetEventSendDe
    +lay/;
    ...
      $self->window_id(FindWindowLike('Mozilla Firefox'));
      ClickWindow($self->window_id);
    }