RE: RE: Making a script to get updates when your voting power is 100% Part 02
You are viewing a single comment's thread from:

RE: Making a script to get updates when your voting power is 100% Part 02

bhanutejap(46)
Published in
#vyb
Words
89
Reading
1 min
Listen
Play
5y

armoredbanana@armoredbanana I see the issue, if we observe the page while loading, initially it's 100% but after a certain delay, the actual value is showing up. This can be seen if you observe the firefox page while loading when it's opened from the script.
We can resolve this in two ways, first is to use time.sleep(3) before getting the element using driver.find_elements_by_xpath, the other option is to use Selenium-python waits.
I'll follow your steps and keep you posted with my results.
Meanwhile, you may want to check these out:
https://selenium-python.readthedocs.io/waits.html
https://stackoverflow.com/questions/26566799/wait-until-page-is-loaded-with-selenium-webdriver-for-python

@bhanutejap: @armoredbanana | Ecency