Browser

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Basic Browser Controls:)
Line 14: Line 14:
 
====allowPlugins====
 
====allowPlugins====
 
====width====
 
====width====
This will tell you the current browser width
+
This will tell you the current browser width.
 
====height====
 
====height====
This will tell you the current browser height
+
This will tell you the current browser height.
 
====downloadedFile====
 
====downloadedFile====
The temporary file path of a file after being downloaded via a file download dialog
+
The temporary file path of a file after being downloaded via a file download dialog.
 
====proxy====
 
====proxy====
 
====referrer====
 
====referrer====
Line 26: Line 26:
  
 
====cursorChanged====
 
====cursorChanged====
 
 
====domBecameReady====
 
====domBecameReady====
 
 
====finishedLoading====
 
====finishedLoading====
 
 
====viewScrolled====
 
====viewScrolled====
 
 
====urlUpdated====
 
====urlUpdated====
 
 
====beganLoading====
 
====beganLoading====
  
Line 41: Line 36:
  
 
===Basic Browser Controls:===
 
===Basic Browser Controls:===
 
 
====navigate====
 
====navigate====
 
(url as String)
 
(url as String)
 
 
====cut====
 
====cut====
 
 
====stopNavigation====
 
====stopNavigation====
 
 
====undo====
 
====undo====
 
 
====paste====
 
====paste====
 
 
====delete====
 
====delete====
 
 
====forward====
 
====forward====
 
 
====refresh====
 
====refresh====
 
 
====zoom====
 
====zoom====
 
not currently functional
 
not currently functional
 
 
====copy====
 
====copy====
 
 
====selectAll====
 
====selectAll====
 
 
====back====
 
====back====
 
 
====unfocus====
 
====unfocus====
 
 
tells the browser it’s been unfocused
 
tells the browser it’s been unfocused
 
 
====focus====
 
====focus====
 +
tells the browser it’s been focused
  
tells the browser it’s been focused
 
  
 
===Low Level Access Functions For Existing UBot Commands:===
 
===Low Level Access Functions For Existing UBot Commands:===
 
 
====getChosenImage====
 
====getChosenImage====
 
 
gets the chosen element image as a BitMap
 
gets the chosen element image as a BitMap
 
 
====clearCookies====
 
====clearCookies====
 
 
====typeText (text As String, keyEvent As String)====
 
====typeText (text As String, keyEvent As String)====
 
 
keyEvent can be:
 
keyEvent can be:
  
Line 100: Line 75:
  
 
====closePage====
 
====closePage====
 
 
====resetHeaders====
 
====resetHeaders====
 
 
====setProxyCredentials====
 
====setProxyCredentials====
 
 
*''(username As String, password As String)
 
*''(username As String, password As String)
 
 
====setReferrer====
 
====setReferrer====
 
 
*''(value As String)
 
*''(value As String)
 
 
====setVisible====
 
====setVisible====
 
 
*''(value As Boolean)
 
*''(value As Boolean)
 
 
====setWebsiteCredentials====
 
====setWebsiteCredentials====
 
 
*''(username As String, password As String)
 
*''(username As String, password As String)
 
 
====loadHtml====  
 
====loadHtml====  
 
 
*''(html As String)
 
*''(html As String)
 
 
====runJavascript====  
 
====runJavascript====  
 
 
*''(javascript As String)
 
*''(javascript As String)
 
 
====setAllowCss====
 
====setAllowCss====
 
 
*''(value As Boolean)
 
*''(value As Boolean)
 
 
====setAllowImages====
 
====setAllowImages====
 
 
*''(value As Boolean)
 
*''(value As Boolean)
 
 
====eval====
 
====eval====
 
 
*''(javascript As String)
 
*''(javascript As String)
 
returns a string
 
returns a string
 
if the eval return an object, this will return a JSON string representing the object
 
if the eval return an object, this will return a JSON string representing the object
 
 
====setAllowJavascript====
 
====setAllowJavascript====
 
 
*''(value As Boolean)
 
*''(value As Boolean)
 
 
====setAllowPopups====
 
====setAllowPopups====
 
 
*''(value As Boolean)
 
*''(value As Boolean)
 
 
====setHeader====
 
====setHeader====
 
 
*''(name As String, value As String)
 
*''(name As String, value As String)
 
 
====getDownloadedFile====
 
====getDownloadedFile====
 
 
====getFullBrowserImage====
 
====getFullBrowserImage====
 
 
gets the current browser image as a BitMap
 
gets the current browser image as a BitMap
 
 
====changeUserAgent====  
 
====changeUserAgent====  
 
 
*''(userAgent As String)
 
*''(userAgent As String)
  

Revision as of 16:34, 10 January 2016

This fixture allows for interaction with the main browser.


Contents

Properties

IsDomReady

Returns a boolean determining whether the dom is ready to be modified.

url

userAgent

visible

allowCss

allowImages

allowJavascript

allowPlugins

width

This will tell you the current browser width.

height

This will tell you the current browser height.

downloadedFile

The temporary file path of a file after being downloaded via a file download dialog.

proxy

referrer

Events

cursorChanged

domBecameReady

finishedLoading

viewScrolled

urlUpdated

beganLoading

Functions

Basic Browser Controls:

navigate

(url as String)

cut

stopNavigation

undo

paste

delete

forward

refresh

zoom

not currently functional

copy

selectAll

back

unfocus

tells the browser it’s been unfocused

focus

tells the browser it’s been focused


Low Level Access Functions For Existing UBot Commands:

getChosenImage

gets the chosen element image as a BitMap

clearCookies

typeText (text As String, keyEvent As String)

keyEvent can be:

  • Standard
  • Key Down
  • Key Up
  • Key Press
  • Flash Plugin

allowPopups

  • Yes
  • In New Window
  • No

closePage

resetHeaders

setProxyCredentials

  • (username As String, password As String)

setReferrer

  • (value As String)

setVisible

  • (value As Boolean)

setWebsiteCredentials

  • (username As String, password As String)

loadHtml

  • (html As String)

runJavascript

  • (javascript As String)

setAllowCss

  • (value As Boolean)

setAllowImages

  • (value As Boolean)

eval

  • (javascript As String)

returns a string if the eval return an object, this will return a JSON string representing the object

setAllowJavascript

  • (value As Boolean)

setAllowPopups

  • (value As Boolean)

setHeader

  • (name As String, value As String)

getDownloadedFile

getFullBrowserImage

gets the current browser image as a BitMap

changeUserAgent

  • (userAgent As String)


Basic Browser Controls:

Low level Helper Functions:

Process Control:

Input Controls:

Wait Functions:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox