AI123 3 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 Share this post Link to post Share on other sites
Nine 992 Posted December 16, 2020 Try : Local $sText = _WD_ElementAction($sSession, $sElement, 'text') 1 AI123 reacted to this Not much of a signature but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Multi-keyboards HotKeySet Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites