Open website in loop fails

Dear all,

I encounter an Error executing OpenURLAction when I loop the Open Website action. In the first loop, there is no problem, in the second loop, the error shows. I saw some other people with the same issue, but I cannot find a workable solution. The error occurs in all browsers (IE, Chrome, Firefox).

Anyone knows how to solve this?

Thanks!

Hi @Tomas

Welcome to Forum and Thanks for posting :slight_smile:

Could you please share your code and the Error info here?

I will share sample code below which is completely working fine in WF Studio,

	<robot driver="chrome" close-on-completion="true" maximize-on-startup="true" name="chromedriver" start-in-private="false">
		<script><![CDATA[ 
			myarr = new ArrayList();
			myarr.add("https://www.google.com/");
			myarr.add("https://www.geeksforgeeks.org/");
			myarr.add("https://automationacademy.com/");
			for (mylist in myarr) {
				open(mylist); //Either This line too...
                openLinkInNewWindow(mylist);// This line works too...
			}
		]]></script>
	</robot>

If this is not what you are looking for, then please share me your code and error information to have a look at it.

Thanks for posting

2 Likes