peterchan75
Supremacy Member
- Joined
- Apr 26, 2003
- Messages
- 6,719
- Reaction score
- 529
Hi All,
My current setup is having perl to fire up the Excel and run the macro with IE to download a text file and perl to parse the text file. I would like to everything in perl.
1. Use Mechanize PhantomJS. Is this the correct path ? IE or Firefox mechanize seem outdated.
2. Having trouble finding the download button.
This is the css selector.
widget-research-and-reports-download.website-template-widget:nth-child(4) > div:nth-child(2) > button:nth-child(3)
How to put the css selector into this statement below.
my @button = $mech->selector();
$mech->click($button[0]);
I tried various css selector but the error message said element is not visible on the page.
3. After I get past the click download, how do I go about handling the saving of the file.
Thanks in advance.
Update:
No go!
Using PhantomJS 2.1.1.
I couldn't take a screen capture of the website.
Screen capture says current browser not supported.
My current setup is having perl to fire up the Excel and run the macro with IE to download a text file and perl to parse the text file. I would like to everything in perl.
1. Use Mechanize PhantomJS. Is this the correct path ? IE or Firefox mechanize seem outdated.
2. Having trouble finding the download button.
This is the css selector.
widget-research-and-reports-download.website-template-widget:nth-child(4) > div:nth-child(2) > button:nth-child(3)
How to put the css selector into this statement below.
my @button = $mech->selector();
$mech->click($button[0]);
I tried various css selector but the error message said element is not visible on the page.
3. After I get past the click download, how do I go about handling the saving of the file.
Thanks in advance.
Update:
No go!
Using PhantomJS 2.1.1.
I couldn't take a screen capture of the website.
Screen capture says current browser not supported.
Last edited: