in reply to Re: Recover Excel datas
in thread Recover Excel datas

Hi Marto

I am not totally agree. Here i am just trying to retrieve a simple data ( a string like "Test") from a cell in an Excel file. I don't want to recover an URL. I just don't understand why i got an URL linked error.

But maybe i am wrong.

Thanks again

Replies are listed 'Best First'.
Re^3: Recover Excel datas
by marto (Cardinal) on Nov 14, 2018 at 14:25 UTC

    "I am not totally agree."

    Both errors you report are the same:

    C:\Users\User1\Documents\TESTPERL>perl TEST.pl Error while executing command: invalid argument: 'url' must be a strin +g (Session info: chrome=70.0.3538.77) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e +332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64) at C:/Strawber +ry/perl/site/lib/Selenium/Remot e/Driver.pm line 391. at C:/Strawberry/perl/site/lib/Selenium/Remote/Driver.pm line 348.

    and

    C:\Users\user1\Documents\TESTPERL>perl TEST6.pl Error while executing command: invalid argument: 'url' must be a strin +g (Session info: chrome=70.0.3538.77) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e +332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64) at C:/Strawber +ry/perl/sit e/lib/Selenium/Remote/Driver.pm line 391. at C:/Strawberry/perl/site/lib/Selenium/Remote/Driver.pm line 348.

    "Here i am just trying to retrieve a simple data ( a string like "Test") from a cell in an Excel file."

    This isn't what the code you posted does. You should ask who ever wrote the code for you.

      Marto

      Thanks. I finally found the issue. Indeed the output is the same but the code is a little bit different. I just forgot to delete a line in the code.

      Thanks for your feedback

Re^3: Recover Excel datas
by Corion (Patriarch) on Nov 14, 2018 at 14:18 UTC

    If you want a string from an Excel file, why do you need Selenium, and Google?

Re^3: Recover Excel datas
by 1nickt (Canon) on Nov 14, 2018 at 14:30 UTC

    Hi,

    "I just don't understand why i got an URL linked error."

    Because you place the value "Test" into the variable $data and then tell the Selenium Driver to get it.

    Hope this helps!


    The way forward always starts with a minimal test.

      Thanks lnickt

      indeed. in fact i forgot to delete a line.. I am beginner in Perl and i am coding in parallel in Java. Sometimes it doesn't help to see clearly the things

      Thanks for the support. Appreciated