How to extract dialog text using javascript and iMacro in Firefox browser

I have a big problem. I need to update the information of a person from a csv file. But I also need to maintain status when looking for an identity. It may be updated, incorrect, or open for every completed form.

I need to extract this dialog text and save it to status.csv file. If no error occurs, I can update the form and submit, and again the text in the last dialog can be retrieved and saved in the status.csv file.

Is there any solution for extracting dialog text from iMacro and js in Firefox. The solution link provided on the iMacro wiki did not work for me.

This question won't come in handy: not a firefox solution

+3


source to share


1 answer


Maybe this solution will work for you:



// imitation of javascript dialog
var ret = iimPlayCode('URL GOTO=javascript:{alert("Dialog<SP>text<SP>to<SP>be<SP>extracted");}')

// extracting dialog text
if (ret < 0) 
    var dlgText = iimGetErrorText();
dlgText = dlgText.match(/Dialog message: "(.*)",/)[1]; 

      

+1


source







All Articles