In New Browser
(→Example) |
|||
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | This command is a [[ | + | This command is a [[Browser Commands|Browser Command]]. This command runs all contained commands inside a separate browser in a separate window. |
− | window. | + | |
+ | These separate browsers will appear as small browsers to the right of the main browser in a vertical column. | ||
− | == Example == | + | Each window will have its own cookies, and can be assigned its own ip. |
+ | |||
+ | |||
+ | |||
+ | == Example 1 == | ||
+ | |||
+ | Each new browser window is separate and does not share cookies or IPs with the main browser. | ||
+ | |||
+ | |||
+ | <pre> | ||
+ | change proxy("175.106.18.166:80") | ||
+ | navigate("http://www.ipchicken.com/","Wait") | ||
+ | in new browser { | ||
+ | navigate("http://www.ipchicken.com/","Wait") | ||
+ | wait(20) | ||
+ | } | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | |||
+ | When the script runs, and main browser's IP will be replaced by the proxy provided, and the IP address of the new browser window will remain the same as the network's IP address. | ||
+ | |||
+ | |||
+ | |||
+ | == Example 2 == | ||
<pre> | <pre> | ||
navigate("bing.com", "Wait") | navigate("bing.com", "Wait") | ||
Line 20: | Line 44: | ||
− | [[File:innewbrowser. | + | [[File:innewbrowser.jpg]] |
Line 28: | Line 52: | ||
− | [[File:innewbrowser0. | + | [[File:innewbrowser0.jpg]] |
Latest revision as of 14:35, 16 August 2015
This command is a Browser Command. This command runs all contained commands inside a separate browser in a separate window.
These separate browsers will appear as small browsers to the right of the main browser in a vertical column.
Each window will have its own cookies, and can be assigned its own ip.
[edit] Example 1
Each new browser window is separate and does not share cookies or IPs with the main browser.
change proxy("175.106.18.166:80") navigate("http://www.ipchicken.com/","Wait") in new browser { navigate("http://www.ipchicken.com/","Wait") wait(20) }
When the script runs, and main browser's IP will be replaced by the proxy provided, and the IP address of the new browser window will remain the same as the network's IP address.
[edit] Example 2
navigate("bing.com", "Wait") in new browser { navigate("http://www.google.com/", "Wait") type text(<name="q">, "Stina Nordenstam", "Standard") click(<name="btnK">, "Left Click", "No") pause script }
Running the script will navigate to bing in the main browser window. A smaller window appears to the right of the main browser, navigate to google, and then searches for a keyword.
To bring the new browser into focus in the main browser, simply click the new browser window.