Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/23/2024 in all areas

  1. Hello, in case you finally want to have the JPG files collection in your clipboard, take a look at the fuction _ClipPutFile() This one has the advantage, that you can even put multiple files into the clipboard, that are spread across multiple folders. CU, Rudi.
    1 point
  2. Jos

    If exist

    no need for this after 14 years!
    1 point
  3. see the example at the bottom of this post:
    1 point
  4. I understand now how to work with the iframes. Find the frame with FindElement with a wait, then enter the frame with FrameEnter and then find the element using FindElement again, using relative Xpath. Working script below, thanks again for your help. Func DisneyLogin() Local $sElement, $sButton, $sXpath, $sEmailInput _WD_Navigate($sSession, "https://disneyworld.disney.go.com/login/") _WD_LoadWait($sSession, Default, 10 * 1000) _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath, $sXpath) ConsoleWrite("Frames Count=" & _WD_GetFrameCount($sSession) & @CRLF) ConsoleWrite("TopWindow=" & _WD_IsWindowTop($sSession) & @CRLF) ;Locate email frame element $sXpath = "//iframe[@id='oneid-iframe']" $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $sXpath) _WD_FrameEnter($sSession, $sElement) ;Locate email element $sEmailInput = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='InputIdentityFlowValue']") ; Set email input element's contents _WD_ElementAction($sSession, $sEmailInput, 'value', "someone@somewhere.com") ; Locate continue click element $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='BtnSubmit']") ; click continue element _WD_ElementAction($sSession, $sButton, 'click') _WD_LoadWait($sSession, 2000) ;Locate password input element $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $sXpath) _WD_FrameEnter($sSession, $sElement) $sEmailInput = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='InputPassword']") ; Set email input element's contents _WD_ElementAction($sSession, $sEmailInput, 'value', "password") ; Locate continue click element $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='BtnSubmit']") ; click continue element _WD_ElementAction($sSession, $sButton, 'click') _WD_LoadWait($sSession, 2000) EndFunc
    1 point
  5. Retrieve the handle of the ListView using GUICtrlGetHandle($iListView) and then use the handle with _GUICtrlListView_DeleteAllItems()
    1 point
×
×
  • Create New...