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 Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
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