SeWinium Behat Driver Object

Gives access to the Driver Object containing the raw seWINium functions

Functions/Methods


   /*----------------------------------------------
        Set Config from File
    ----------------------------------------------- */
    public function setConfig($key, $port)


    /*----------------------------------------------
       Get the API Key
    ----------------------------------------------- */

    public function getAPIKey()

    /*----------------------------------------------
       Get the last seWINium command
    ----------------------------------------------- */

    public function getLastCommand()

    /*----------------------------------------------
       Get the last window Handle
    ----------------------------------------------- */

    public function getLastWindowHandle()

    /*----------------------------------------------
       Get the selected window Handle
    ----------------------------------------------- */

    public function getSelectedWindowHandle()

//*******************************************************************************************
//******************        seWINium Window API Functions               ****************************    
//*******************************************************************************************

     /*----------------------------------------------
       Get the seWINium Version
    ----------------------------------------------- */
    public function apiSewiniumVersion()


    /*----------------------------------------------
       Find/Select Window (Raw By Params)
       see https://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm
    ----------------------------------------------- */
    public function apiFindWindow($urlParams)

    
    /*----------------------------------------------
       Find/Select Window by Title/Class/Postion/Size
       [instance] - 0 = no specific instance / 1->n : Specific window instance
    ----------------------------------------------- */

    /* -------------- Find By Title -------------*/
    public function apiFindWindowByTitle($title, $instance=0)

    /* -------------- Select By Title -------------*/
    public function apiSelectWindowByTitle($title, $instance=0)

    /* -------------- Find By Class -------------*/
    public function apiFindWindowByClass($class, $instance=0)

    /* -------------- Select By Class -------------*/
    public function apiSelectWindowByClass($class, $instance=0)

    /* -------------- Find By Postion -------------*/
    public function apiFindWindowByXY($x,$y, $instance=0)

    /* -------------- Find By Size -------------*/
    public function apiFindWindowBySize($width,$height, $instance=0)

    /* -------------- Select By Size -------------*/
    public function apiSelectWindowBySize($width,$height, $instance=0)

    /* -------------- Find Like Title (Regex) -------------*/
    /* --- see https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm ---*/
    public function apiFindWindowLikeTitle($titleRegex, $instance=0)

    /* -------------- Select Like Title (Regex) -------------*/
    /* --- see https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm ---*/
    public function apiSelectWindowLikeTitle($titleRegex, $instance=0)

    /* -------------- Find Like Class (Regex) -------------*/
    /* --- see https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm ---*/
    public function apiFindWindowLikeClass($classRegex, $instance=0)

    /* -------------- Select Like Class (Regex) -------------*/
    /* --- see https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm ---*/
    public function apiSelectWindowLikeClass($classRegex, $instance=0)


    /* -------------- Find Active Window -------------*/
    public function apiFindWindowActive()


    /* -------------- Select Like Active -------------*/
    public function apiSelectWindowActive()

    /* -------------- Find Last Window -------------*/
    public function apiFindWindowLast()

    /* -------------- Select Last Active -------------*/
    public function apiSelectWindowLast()

    /* -------------- Find Selected Window -------------*/
    public function apiFindWindowSelected()

    /* -------------- Select Window by handle-------------*/
    public function apiSelectWindowByHandle($handle)

  • wiki/sewinium/driver.txt
  • Last modified: 17/03/2018 12:31
  • by ThinkingEngine