The Addon will provide WebBrowser possibilities.  HTM/HTML files can be handled or Webbrowsing scripting can be included within the IT-Tool script code. This way, fields can be entered or webpage sources can be checked and analysed.



Variables



WBSOURCE

Returns the html output from the loaded page 

R

WBOPTIMUMSOURCE

Returns cleaned html output from the loaded page

R

WBTITLE

Returns the title of the loaded page

R

WBNAME

Returns  or sets the name of the webbrowser, default is “WB”

RW

WBDEFAULTWAIT

Returns  or sets the value if every command waits if the webbrowser has handled the command. Default is True.

RW

WBLEFT

Returns  or sets the left position of the webbrowser

RW

WBTOP

Returns  or sets the top position of the webbrowser

RW

WBWIDTH

Returns  or sets the width of the webbrowser

RW

WBHEIGHT

Returns  or sets the height of the webbrowser

RW

WBVISIBLE

Returns or sets the webbrowser visibility status

RW

WBOPENHTMLINCTRL

Returns or sets the property that determines if the webbrowser is opened in an external form or an internal control, when an html- or url-file is opened from the treeview.

RW



Functions


WBOpen(url As String, Optional visible As Boolean = True, 

                      Optional DisableCompatibility As Boolean = False,

              Optional OpenAsControl As Boolean = False) As Boolean

DisableCompatibility to true will run the AddCompatibleHeader with “IE=edge” function after a document is loaded. This may be required for some websites.

OpenAsControl will determine if the webbrowser is opened in an external form or as a fourth control in IT-Tool.

WBClose() As Boolean

WBIsOpen() As Boolean

WBSetBounds(x As Integer, y As Integer, width As Integer, height As Integer) As Boolean

WBSetWindowsState(Mode As Integer) As Boolean

            Normal = 0

            Minimized = 1

            Maximized = 2

WBAddCompatibleHeader(Optional ByVal IEversion As String = "edge") As Boolean


IEversion can be 'EmulateIE9', 'EmulateIE8', 'EmulateIE7', '9', '8', '7', 'edge'

To turn of compatibility in the webbrowser (default IE7) would normally require setting the registry. To avoid this, an extra compatibility header can be added to the document. Note that this function will only work for the current loaded document.

WBClickLink(ByVal UrlTarget As String, Optional ByVal inputType As String = "submit") As Boolean

WBGetText(ByVal searchElement As String, Optional inner As Boolean = True,

                     Optional ByVal ElementsTagName As String = "div") As String

WBGetHTML(ByVal searchElement As String, Optional inner As Boolean = True,

                 Optional ByVal ElementsTagName As String = "div") As String

WBSetFocusAttribute(ByVal searchElement As String, 

                                 Optional ByVal ElementsTagName As String = "input") As Boolean

WBGetAttribute(ByVal attribute As String, ByVal searchElement As String, 

                         Optional ByVal ElementsTagName As String = "input") As String

WBSetAttribute(ByVal value As String, ByVal attribute As String, 

                             ByVal searchElement As String, 

                             Optional ByVal ElementsTagName As String = "input") As Boolean

WBClickElement(ByVal searchElement As String, 

                               Optional ByVal ElementsTagName As String = "input") As Boolean

WBSendkeys(ByVal sendString As String) As Boolean

See table for string values

WBWaitWhileBusy() As Boolean

Not needed when WBDEFAULTWAIT = True

WBGotoURL(ByVal URL As String) As Boolean

WBRefreshWB() As Boolean

WBGoHome() As Boolean

WBGoBack() As Boolean

WBGoForward() As Boolean

WBClearSession() As Boolean


Created with the Personal Edition of HelpNDoc: Free Web Help generator