Hi monks !

I am requesting for your widsom guys. I am a beginner in Perl . This is the first time i use Perl language. I have to do some automation regarding some tests cases and i decided to use Perl because i had good feedback of using Perl in test automation. I am working with Selenium and i decided to use Selenium::Remote::Driver I think i did all the configurations as requested but i am facing an issue wen i want to run a simple script using this module.

Here is the code
#!/usr/bin/perl use strict; use warnings; #use Selenium::Firefox; use Selenium::Remote::Driver; my $driver = Selenium::Remote::Driver->new; $driver->get('http://www.google.com'); use Selenium::Remote::Driver;
and below the output when i launch my script from CMD:
C:\Users\user1\Documents\TESTPERL>perl TEST1.pl Could not create new session: Unable to create new service: GeckoDrive +rService Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02 +T20:13:22.693Z' System info: host: 'LBNL13608', ip: '10.132.5.117', os.name: 'Windows +7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_191' Driver info: driver.version: unknown at TEST1.pl line 8.

I don't understand why i have to use a "geckoDriver"?!

Thanks in advance,

Br


In reply to Simple code using Selenium::Remote::Driver by Perlchaoui

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.