Giter Site home page Giter Site logo

Comments (3)

rizwansoaib avatar rizwansoaib commented on May 25, 2024

Before this use sleep(30)

e.g.-
sleep(30)
with open('qr.png', 'wb') as file:
file.write(driver.find_element_by_xpath('/html/body/div[1]/div/div/div[2]/div[1]/div/div[2]/div/img').screenshot_as_png)

Actually it's error because your http://web.whatsapp.com not loaded 100% so using sleep after 30sec webpage will loaded successfully.

Please open web.whatsapp.com in your browser and check how many seconds it's take time to load
then enter in sleep() it's will depend upon your network speed.

Well in monitor+log.py I added 30sec.

Thank You

from whatsapp-monitor.

elanozturk avatar elanozturk commented on May 25, 2024

i tried also; wait = WebDriverWait(driver, 600) and sleep after open issue but no luck, i use chrome instead of firefox, when i changed headless mode to the False, it worked but appeared 2 qr code on screen (imagemagick and on page)

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024

when headless=False remove Qr code generation code
then it will show only on page qr not imagemagick

from whatsapp-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.