Blaxxun Posted July 15, 2023 Author Share Posted July 15, 2023 @Danp2 Yes, _WD_ElementOptionSelect() did the trick. Thank you! Okay, wow, this is one function for just this task. Nice and good to know now. Thanks! @mLipok Thank you too Link to comment Share on other sites More sharing options...
Blaxxun Posted July 15, 2023 Author Share Posted July 15, 2023 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 More sharing options...
Danp2 Posted July 15, 2023 Share Posted July 15, 2023 @Blaxxun See https://github.com/Danp2/au3WebDriver/issues/481 for tracking of the React table compatibility. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
bdr529 Posted July 16, 2023 Share Posted July 16, 2023 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 More sharing options...
Danp2 Posted July 22, 2023 Share Posted July 22, 2023 (edited) @Blaxxun You can try out the proposed changes to _WD_GetTable by replacing your copy of wd_helper.au3 with the proposed code from here. The link in my prior post also contains some code that demonstrates the new functionality. Edited July 25, 2023 by Danp2 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now