Exists
From UBot Studio
(Difference between revisions)
(Created page with "This function is a Qualifier Function. This function returns whether or not an element exists on the current page. Element to Find refers to the eleme...") |
(→Example) |
||
(5 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
This function is a [[Qualifier Functions|Qualifier Function]]. | This function is a [[Qualifier Functions|Qualifier Function]]. | ||
− | This function returns whether or not an element exists on the current page. | + | This function returns whether or not an element exists on the current page. Simply choose an element using one of the selector tools. (See [[The Selectors]] for more information) |
− | + | ||
− | The qualifier comes with an element selector that you can use to select the item on the page you would like to script to search. | + | '''Element to Find:''' refers to the element that is being search for on the webpage. |
+ | |||
+ | The qualifier comes with an [[The Selectors|element selector]] that you can use to select the item on the page you would like to script to search. | ||
== Example == | == Example == | ||
Line 20: | Line 21: | ||
If the item selected for the exists qualifier exists on the page, then the script navigates to google.com. | If the item selected for the exists qualifier exists on the page, then the script navigates to google.com. | ||
− | [[File: | + | |
+ | [[File:existsa.jpg]] | ||
+ | |||
If the item selected for the exists qualifier does not exist on the page, the script navigates to ubotstudio.com/resources | If the item selected for the exists qualifier does not exist on the page, the script navigates to ubotstudio.com/resources | ||
− | [[File: | + | |
+ | [[File:existsb.jpg]] |
Latest revision as of 18:29, 29 September 2013
This function is a Qualifier Function. This function returns whether or not an element exists on the current page. Simply choose an element using one of the selector tools. (See The Selectors for more information)
Element to Find: refers to the element that is being search for on the webpage.
The qualifier comes with an element selector that you can use to select the item on the page you would like to script to search.
[edit] Example
if($exists(<innertext="Video Training in Ten Minutes or Less!">)) { then { navigate("google.com", "Wait") } else { navigate("ubotstudio.com/resources", "Wait") } }
If the item selected for the exists qualifier exists on the page, then the script navigates to google.com.
If the item selected for the exists qualifier does not exist on the page, the script navigates to ubotstudio.com/resources