Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks ! I have an issue a little bit difficult.
I would like to recover with Perl code some data automatically in a config file and use them in a test with Selenium::Remote::Driver module. Mainly using "send_keys("...")"
My config file is following : work.conf :
And my file test is following:my $folder = 'E:\FOLDER\Test\WEB'; { license => 'kit-licence.zip', programs => [ #template society =>\%program_work 'VIKTOR DESCRIPTION PRODUCT' => { name => 'VIKTOR ', parameters => [ Count_id => '06 ( +Viktor)', Birth_date => '1995-04-3 +0', Marriage_date => '2014-05-26', Divorce_date => '2015-03-30', Activities_folder => $folder. +'\VIKTOR\independent worker', Activities_format => 'Enterpr +ise Format (V35)', Description_File_from => $folder.'\VI +KTOR\FILE\description.xlm', ] }, ] };
#test.pl use Modern::Perl; my $config = do 'work.conf'; use Data::Dumper; say Dumper( $config );
And i would like in my test.pl , my file test, to recover values from my HASH parameters , i.e. for Count_id recover '06 (Viktor)' etc..
And after have recovered them , i would like to send them in my some input in my web page, using method from Selenium::Remote::Driver :For example:
$driver->find_element('login','class')->send_keys("06 (Viktor)");
Many Thanks fro any help!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recover data from a config file to use them with Selenium::Remote::Driver
by haukex (Archbishop) on Jun 01, 2016 at 16:33 UTC | |
by Chaoui05 (Scribe) on Jun 02, 2016 at 10:38 UTC | |
by haukex (Archbishop) on Jun 02, 2016 at 13:16 UTC | |
by Chaoui05 (Scribe) on Jun 03, 2016 at 07:43 UTC |