Ridge 0 Posted December 30, 2013 Report Share Posted December 30, 2013 I'm trying to figure out how I can have two tabs in the browser work at once and together. I want to use http://www.fakemailgenerator.com to get email from, however if you click it and check it out the way it works is it pre-loads an email account each refresh. I need to somehow get a new email each refresh and also get this email onto another tab (copy & paste). Then once i make the account using this email I need to be able to verify the account by clicking a link in the email. How could I do this? Quote Link to post Share on other sites
UBotDev 276 Posted December 31, 2013 Report Share Posted December 31, 2013 If I understand the answer you should put your 2nd tab code into a define command with parameters (where one parameter is is the email you copy paste) and execute that one from 1st tab, inside "in new browser" node. If you want to run multiple define commands at the same time you should surround "in new browser" container with "thread" container. I hope the example bellow will help you to understand the concepts: comment("1st tab code") set(#EMAIL, "{$scrape attribute(<id="fName">, "value")}{$scrape attribute(<class="center">, "innertext")}", "Global") THREAD START(#EMAIL) define THREAD START(#EMAIL) { thread { in new browser { TAB TWO(#EMAIL) } } } define TAB TWO(#EMAIL) { comment("code from 2nd tab here, bellow is an example") navigate("http://www.google.com/", "Wait") wait for element(<name="q">, "", "Appear") type text(<name="q">, #EMAIL, "Standard") pause script } To test the code above navigate to page in question and start this code. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.