Jump to content

Webdriver Firefox: Login to a website and get data from it. Learning Webdriver


Blaxxun
 Share

Go to solution Solved by Danp2,

Recommended Posts

Func SetTableTo100()

    Local $Xp = "//option[@value='100']"

    Sleep(10000) ;                                                      Wait for loading the table
    _WD_ElementOptionSelect($sSession, $_WD_LOCATOR_ByXPath, $Xp) ;     Select 100 Results from the Dropdown Menu
    Sleep(1000) ;                                                       Let it sink in

EndFunc   ;==>SetTableTo100

 

Link to comment
Share on other sites

14 hours ago, Blaxxun said:
Func SetTableTo100()

    Local $Xp = "//option[@value='100']"

    Sleep(10000) ;                                                      Wait for loading the table
    _WD_ElementOptionSelect($sSession, $_WD_LOCATOR_ByXPath, $Xp) ;     Select 100 Results from the Dropdown Menu
    Sleep(1000) ;                                                       Let it sink in

EndFunc   ;==>SetTableTo100

 

Local $Xp = "//option[@value='100']"
                local $timerdiff
                local $_WD_ElementOptionSelect_error=true
                local $hTimer = TimerInit()
                while 1
                    _WD_ElementOptionSelect($sSession, $_WD_LOCATOR_ByXPath, $Xp) 
                    if not @error then
                        $timerdiff=timerdiff($hTimer)
                        $_WD_ElementOptionSelect_error=false
                        exitloop
                    endif
                    if timerdiff($hTimer)>10000 Then exitloop
                wend
                if $_WD_ElementOptionSelect_error=false then 
                    msgbox(64,"ok",round($timerdiff/1000,1))
                else
                    msgbox(16,"ko","timeout")
                endif

 

To community goes all my regards and thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...