AI123 Posted December 16, 2020 Share Posted December 16, 2020 (edited) Hello, is there a way to get the value of a Xpath element? I have: ;Full XPath: /html/body/div/div[1]/ui-view/div/div/div/div/div[2]/div[2]/article/div[2]/div/div[1]/span ;value of span <span data-v-9eab177c="" class="text-truncate">Noch nicht veröffentlicht</span> I can get the handle then with Local $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//div/div[1]/ui-view/div/div/div/div/div[2]/div[2]/article/div[2]/div/div[1]/span") But I want the value of the element ("Noch nicht veröffentlicht") not the handle. So is there a way to get the element value if I have the XPath? Edited December 16, 2020 by AI123 Link to comment Share on other sites More sharing options...
Nine Posted December 16, 2020 Share Posted December 16, 2020 Try : Local $sText = _WD_ElementAction($sSession, $sElement, 'text') AI123 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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