Extract Text from Xpath no work on .js Imacros

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
foxgenco
Posts: 2
Joined: Mon Dec 26, 2016 8:38 pm

Extract Text from Xpath no work on .js Imacros

Post by foxgenco » Tue Nov 27, 2018 10:26 pm

Firefox 55.0 x64
Imacros 9.0.3


Using this works well

Code: Select all

TAG XPATH="//div[contains(@class,'col-md-12 text-center alert alert-danger')]" EXTRACT=TXT
this not.

Code: Select all

var macro;
macro = "CODE:";

macro += "TAG XPATH="//div[contains(@class,'col-md-12 text-center alert alert-danger')]" EXTRACT=TXT" + "\n";

iimPlay(macro)
iimDisplay(result);
Post Reply