Navigate

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
 
(17 intermediate revisions by one user not shown)
Line 1: Line 1:
 
This command navigates the browser to a specified url.
 
This command navigates the browser to a specified url.
 +
 
Navigate is a [[Browser Commands|Browser Command]].
 
Navigate is a [[Browser Commands|Browser Command]].
 +
 
The command can be used in the [[In New Browser]] command.
 
The command can be used in the [[In New Browser]] command.
 +
 +
'''URL:''' Where your website url is inserted. The command also accepts variables and functions such as [[$next list item]], [[$list item]], [[$random list item]], [[$previous list item]], and [[$table cell]].
 +
 +
Clicking the Advanced option on the command expands and reveals another option.
 +
 +
'''Wait for page to load:''' Determines whether the command should wait for the page to load before to moving on to the next command.
 +
 +
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
Line 8: Line 18:
  
 
</pre>
 
</pre>
 +
  
 
Running the command will navigate the main browser to the specified url in the command.
 
Running the command will navigate the main browser to the specified url in the command.
  
[[File:navigate.png]]
+
 
 +
<pre>
 +
clear list(%myurls)
 +
add list to list(%myurls, $list from text("www.ubotstudio.com/blog,www.ubotstudio.com,www.twitter.com/ubotstudio,https://www.facebook.com/LikeUBot", ","), "Delete", "Global")
 +
set list position(%myurls, 0)
 +
loop($list total(%myurls)) {
 +
    navigate($next list item(%myurls), "Wait")
 +
    wait(3)
 +
}
 +
</pre>
 +
 
 +
 
 +
 
 +
The script above will navigate to each url within the list %myurls. Once each link has been visited, the loop will stop.
 +
 
 +
Notice that the navigate command is used along with the [[Loop|loop command]], the [[$next list item]] function, the [[Set List Position | set list position]] command, [[Add List to List|add list to list]] command, and the [[$list from text]] function.
 +
 
 +
 
 +
 
 +
[[File:nav0ne.png]]

Latest revision as of 20:51, 13 October 2014

This command navigates the browser to a specified url.

Navigate is a Browser Command.

The command can be used in the In New Browser command.

URL: Where your website url is inserted. The command also accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell.

Clicking the Advanced option on the command expands and reveals another option.

Wait for page to load: Determines whether the command should wait for the page to load before to moving on to the next command.


[edit] Example


navigate("google.com", "Wait")


Running the command will navigate the main browser to the specified url in the command.


clear list(%myurls)
add list to list(%myurls, $list from text("www.ubotstudio.com/blog,www.ubotstudio.com,www.twitter.com/ubotstudio,https://www.facebook.com/LikeUBot", ","), "Delete", "Global")
set list position(%myurls, 0)
loop($list total(%myurls)) {
    navigate($next list item(%myurls), "Wait")
    wait(3)
}


The script above will navigate to each url within the list %myurls. Once each link has been visited, the loop will stop.

Notice that the navigate command is used along with the loop command, the $next list item function, the set list position command, add list to list command, and the $list from text function.


Nav0ne.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox