Advertisement
hakonhagland

perl-script-selenium-remote-server

Dec 13th, 2022
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $ cat p3.pl
  2. #! /usr/bin/env perl
  3. use feature qw(say);
  4. use strict;
  5. use warnings;
  6. use Selenium::Remote::Driver;
  7. say "Starting perl script";
  8. my $driver = Selenium::Remote::Driver->new;
  9. say "Created driver..";
  10. $driver->set_window_position(0, 0);
  11. $driver->set_window_size(20000, 600, 'current');
  12. sleep 10;
  13.  
  14. $ p3.pl
  15. Starting perl script
  16. Created driver..
  17. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement