Jump to content

Search the Community

Showing results for tags '_wd_highlightelements'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi Guys, I want to highlight an item on my GUI: I prepared below code: ConsoleWrite(@CRLF & "Checkpoint 01" & @CRLF) $sSelector = "//h1[contains(text(),'Welcome to BSS')]" $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $sSelector, Default, True) ConsoleWrite(@CRLF & "Checkpoint 02" & @CRLF) _WD_HighlightElements($sSession, $sElement, 3) ;3 - Highlight yellow rounded box + border dotted red If @error Then ConsoleWrite("Checkpoint 03 ERROR IS: " & @error & @CRLF) EndIf ConsoleWrite(@CRLF & "Checkpoint 04" & @CRLF) Find Element --> Failed Highlight Element --> Failed Checkpoint 01 __WD_Post: URL=HTTP://127.0.0.1:5555/session/e8400313055f3e527203269ed8b79caa/elements; Data={"using":"xpath","value":"\/\/h1[contains(text(),'Welcome to BSS')]"} __WD_Post ==> Success [0] : HTTP status = 200 ResponseText={"value":[]} _WD_FindElement ==> No match [8] : Parameters: Strategy=xpath Selector=//h1[contains(text(),'Welcome to BSS')] StartNodeID=Default Multiple=True ShadowRoot=Default Checkpoint 02 __WD_Post: URL=HTTP://127.0.0.1:5555/session/e8400313055f3e527203269ed8b79caa/execute/sync; Data={"script":"arguments[0].style='border: 2px dotted red; background: #FFFF66; border-radius: 5px; padding-left: 3px;'; return true;", "args":[{"element-6066-11e4-a52e-4f735466cecf":""}]} __WD_Post ==> No match [8] : HTTP status = 404 ResponseText={"value":{"error":"stale element reference","message":"stale element reference: element is not attached to the page document\n (Session info: chrome=99.0.4844.84)","stacktrace":"Backtrace:\n\tOrdinal0 [0x00AD9943+2595139]\n\tOrdinal0 [0x00A6C9F1+2148849]\n\tOrdinal0 [0x00964528+1066280]\n\tOrdinal0 [0x00966E04+1076740]\n\tOrdinal0 [0x00966CBE+1076414]\n\tOrdinal0 [0x0096763A+1078842]\n\tOrdinal0 [0x009BC529+1426729]\n\tOrdinal0 [0x009AB9EC+1358316]\n\tOrdinal0 [0x009BBAF2+1424114]\n\tOrdinal0 [0x009AB806+1357830]\n\tOrdinal0 [0x00986086+1204358]\n\tOrdinal0 [0x00986F96+1208214]\n\tGetHandleVerifier [0x00C7B232+1658114]\n\tGetHandleVerifier [0x00D3312C+2411516]\n\tGetHandleVerifier [0x00B6F261+560433]\n\tGetHandleVerifier [0x00B6E366+556598]\n\tOrdinal0 [0x00A7286B+2173035]\n\tOrdinal0 [0x00A775F8+2192888]\n\tOrdinal0 [0x00A776E5+2193125]\n\tOrdinal0 [0x00A811FC+2232828]\n\tBaseThreadInitThunk [0x74EA3D05+18]\n\t(No symbol) [0x77089732]\n\t(No symbol) [0x77089705]\n"}} _WD_ExecuteScript ==> No match [8] : stale element reference: element is not attached to the page document (Session info: chrome=99.0.4844.84) _WD_HighlightElements ==> No match [8] : Parameters: Element= Method=3 Checkpoint 03 ERROR IS: 8 Checkpoint 04 I'm not sure if I can use "//h1[contains(text(),'Welcome to BSS')]" or I should change h1 to * "//*[contains(text(),'Welcome to BSS')]". I don't know what h1 means, and I don't know if it's supported. How can I highlight that Welcome to BSS text?
×
×
  • Create New...