<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>browser automation Archives - Creatronix</title>
	<atom:link href="https://creatronix.de/tag/browser-automation/feed/" rel="self" type="application/rss+xml" />
	<link>https://creatronix.de/tag/browser-automation/</link>
	<description>My adventures in code &#38; business</description>
	<lastBuildDate>Sat, 26 Oct 2024 19:29:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>iMacros for the Rescue </title>
		<link>https://creatronix.de/imacros-for-the-rescue/</link>
		
		<dc:creator><![CDATA[Jörn]]></dc:creator>
		<pubDate>Mon, 12 Jun 2017 18:55:30 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[browser automation]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[iMacros]]></category>
		<guid isPermaLink="false">http://creatronix.de/?p=367</guid>

					<description><![CDATA[<p>Bill Gates once said: “I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” Sometimes being such a lazy person I&#8217;ve discovered a couple of years ago a neat little browser plug in which let&#8217;s you automate your browser. It&#8217;s called iMacros and&#8230;</p>
<p>The post <a href="https://creatronix.de/imacros-for-the-rescue/">iMacros for the Rescue </a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Bill Gates once said: “I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.”</p>
<p>Sometimes being such a lazy person I&#8217;ve discovered a couple of years ago a neat little browser plug in which let&#8217;s you automate your browser. It&#8217;s called iMacros and is available for Firefox and <a href="https://chrome.google.com/webstore/detail/imacros-for-chrome/cplklnmnlbnpmjogncfgfijoopmnlemp">Chrome.</a></p>
<p>After the installation you get an icon in your toolbar:</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-848" src="https://creatronix.de/wp-content/uploads/2017/06/toolbar.png" alt="" width="556" height="208" srcset="https://creatronix.de/wp-content/uploads/2017/06/toolbar.png 556w, https://creatronix.de/wp-content/uploads/2017/06/toolbar-300x112.png 300w" sizes="(max-width: 556px) 100vw, 556px" /></p>
<p>When You click this icon the iMacros sidebar opens and you find a bunch of demo scripts:<span id="more-367"></span></p>
<p><img decoding="async" class="alignnone size-large wp-image-847" src="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-13.56.27-334x1024.png" alt="" width="334" height="1024" srcset="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-13.56.27-334x1024.png 334w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-13.56.27-98x300.png 98w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-13.56.27.png 410w" sizes="(max-width: 334px) 100vw, 334px" /></p>
<h2>Capture and Replay</h2>
<p>If You use iMacros for the first time you should definitely start with the record and playback option:</p>
<p><img decoding="async" class="alignnone size-large wp-image-850" src="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.22-369x1024.png" alt="" width="369" height="1024" srcset="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.22-369x1024.png 369w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.22-108x300.png 108w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.22.png 402w" sizes="(max-width: 369px) 100vw, 369px" /></p>
<p>If You hit the record button iMacros is going to capture every mouse click and keystroke. If you hit stop it will save it to the #Current.iim file.</p>
<h2><img decoding="async" class="alignnone size-full wp-image-851" src="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.54.png" alt="" width="430" height="148" srcset="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.54.png 430w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.21.54-300x103.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></h2>
<h2>Macro Language</h2>
<p>After you captured your interaction with the browser you can manually alter the script. This is what iMacros saved when we entered something into the google search bar:</p>
<pre>URL GOTO=https://www.google.de/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:tsf ATTR=ID:lst-ib CONTENT=creatronix
TAG POS=1 TYPE=BUTTON FORM=ID:tsf ATTR=ID:_fZl</pre>
<p>The syntax is pretty easy, iMacros tries to figure out which is the best identifier for a web element. In this example it uses ATTR=ID:lst-ib to identify the input field and ATTR=ID:_fZl for the Search Button.</p>
<h2>Real world example</h2>
<p>One task where this plug in came in handy was adding a bunch of colleagues to a newly created mailing group. For this example you need to have all names in a text file, which you can access with:</p>
<pre>SET !DATASOURCE colleagues.csv 'Name of the file
SET !LOOP 1 'which line you want to start from
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:fname CONTENT={{!COL1}</pre>
<p><img decoding="async" class="alignnone size-full wp-image-855" src="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.44.41.png" alt="" width="354" height="210" srcset="https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.44.41.png 354w, https://creatronix.de/wp-content/uploads/2017/06/Bildschirmfoto-2017-06-12-um-14.44.41-300x178.png 300w" sizes="(max-width: 354px) 100vw, 354px" /></p>
<p>You can repeat the macro with the Play Loop function. If you have 15 people in your list you can set Max to 15 and hit play. You can select the playback speed in the settings menu so that you are able to watch your script in slowly in action. When it works flawlessly You can crank up the speed to get the job done.</p>
<h2>Bottom Line</h2>
<p>Over the years iMacros saved me a lot of manual labor. Every time I have to do some annoying copy and paste job in the browser, I try to figure out if there is a way with iMacros. Its syntax is quite comprehendible so adapting scripts to new situations is very easy.</p>
<p>On drawback: you have no if-else statements so if you loop, the flow has to be straight forward.</p>
<p>When I want to do more heavy lifting and permanently integrate some scripts into my workflow I use Greasemonkey, but that&#8217;s a different story for the next time. Stay tuned!</p>
<p>&nbsp;</p>
<p>The post <a href="https://creatronix.de/imacros-for-the-rescue/">iMacros for the Rescue </a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
