Jump to content

Reading information in chrome

Recommended Posts

Hello friends, I have a problem and I hope that the dear colleagues can help me, I need to read the information marked in the print in the chrome code.



Link to comment
Share on other sites

local $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//div[@color='secondary' and @font-size='16px' and @class='sc-daa4d312-0 sc-91c0326-1 1-pocKL ezfAXw']")
local $text=_WD_ElementAction($sSession, $sElement, 'text')


To community goes all my regards and thanks

Link to comment
Share on other sites

The return is always blank, the value I need is the clock marked in the image, every 1sec.
The website is pancakeswap

#include "wd_core.au3"

; https://pancakeswap.finance/prediction

Local $sSession = _WD_CreateSession()
Local $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//div[@color='secondary' and @font-size='16px' and @class='sc-daa4d312-0 sc-91c0326-1 lpocKL ezfAXw']")

ConsoleWrite("Return: " & $sElement & @CRLF)



Link to comment
Share on other sites

Danp2 has no real code because I don't even know where to start, the most I have is snippets that I was looking for in the forum to test but none of them worked. There is nothing objective about getting this information from the website, I just decided to get this value because it is an interesting excerpt. Any help will be welcome!

bdr529 I couldn't get these lines to work.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...