In Popup
From UBot Studio
(Difference between revisions)
(→Example) |
|||
| Line 7: | Line 7: | ||
navigate("http://www.javascript-coder.com/files/window-popup/javascript-window-open-example1.html", "Wait") | navigate("http://www.javascript-coder.com/files/window-popup/javascript-window-open-example1.html", "Wait") | ||
click(<href="javascript: openwindow()">, "Left Click", "No") | click(<href="javascript: openwindow()">, "Left Click", "No") | ||
| − | wait( | + | wait(4) |
in popup { | in popup { | ||
set(#header, $scrape attribute(<title="Permanent link to jQuery Popups">, "innertext"), "Global") | set(#header, $scrape attribute(<title="Permanent link to jQuery Popups">, "innertext"), "Global") | ||
Revision as of 17:50, 17 September 2013
This command is a Flow Command. This command runs all contained commands inside a previously opened popup from a webpage.
Example
allow popups("In New Window")
navigate("http://www.javascript-coder.com/files/window-popup/javascript-window-open-example1.html", "Wait")
click(<href="javascript: openwindow()">, "Left Click", "No")
wait(4)
in popup {
set(#header, $scrape attribute(<title="Permanent link to jQuery Popups">, "innertext"), "Global")
close page
}
Running the script will scrape the specified item within the new pop up window on the left side of the browser.