Mh I tried to be as clear as possible, I’m not sure how to explain better… Part of the Facebook pixel text mentioned above is just omitted from the text, whether I copy it, type it, xtype it, or anything at all. With copying it’s even worse: "<!-- Facebook Pixel Code --> <script>!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '${!cmd_var2}'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=${!cmd_var2}&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code -->"
I believe the reason it is not working for me, is becasue I’m saving it as HTML (with autorun), as I need to run it from a file. Then the part that is recognised as HTML, isn’t saved. You can try that if you have the possibility.
This could be. “HTML (with autorun)” as a way to run macros is deprecated, because it is no longer needed. You can achieve exactly the same (and more!) with the command line. Instead of opening the the HTML file to run the macro, you would instead click on a shortcut or a batch file or a shell script to run the macro. You also find more info on the “API” tab on the RPA settings page:
The old HTML file method copies the complete macro into an HTML table. This is the old Selenium IDE V2.x format. The only advantage of this format is that you can import it back into Selenium IDE. You need to create such a macro specific HTML page for every macro that you want to launch from the desktop or script.
The new API method to launch a macro uses always the same “dummy” Autostart HTML page. You can create this page once with the big blue button on the API settings page. Then you add ¯o=MACRONAME to the HTML page local file URL. To run other macros, just change the macro name.