geoffnoakes Posted September 27, 2020 Share Posted September 27, 2020 When I was automating the use of Internet Explorer (via the IE.au3 UDF), there were 2 functions I frequently used: _IEBodyReadHTML and _IEBodyReadText I am now using Chrome and WD_Core.au3. I'm using _WD_GetSource in place of _IEBodyReadHTML, but I've not found anything quite like _IEBodyReadText. Is there such a function -- that will capture the text of a page that is rendered by Chrome? Thanks... Geoff G Link to comment Share on other sites More sharing options...
CYCho Posted September 27, 2020 Share Posted September 27, 2020 First you get body element of the page and then get the text of that element. $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//body") $sText = _WD_ElementAction($sSession, $sElement, "text") Danp2 1 zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
geoffnoakes Posted September 27, 2020 Author Share Posted September 27, 2020 19 hours ago, CYCho said: First you get body element of the page and then get the text of that element. $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//body") $sText = _WD_ElementAction($sSession, $sElement, "text") Perfect! Worked the first time. Many thanks, CYCho... Link to comment Share on other sites More sharing options...
CYCho Posted September 27, 2020 Share Posted September 27, 2020 2 hours ago, geoffnoakes said: Perfect! Worked the first time. Many thanks, CYCho... You're welcome. I'm glad I could help. zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment 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