Giter Club home page Giter Club logo

chess-com-bot-selenium's Introduction

chess-com-bot-selenium's People

Contributors

al3xkras avatar astr0dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chess-com-bot-selenium's Issues

Move slower

Great release.

How do you make it move the pieces "slower" to appear more legitmate

Timeout Problem

Hey Alex,

i installed your script on my Windows Machine. The first move works without problem, but then I will get this error Message:

(main.py:573)←[0m ←[0m2024-07-17 11:37:52 ←[32m[INFO] [←[32mchess-log,←[32m main.py:407]←[0m←[38;20m: Board: <selenium.webdriver.remote.webelement.WebElement (session="dc029f43251280d13b91a861176a20cc", element="f.0EC23E972DB1C283AADEEC4C3844C71E.d.EDFE93657D922298F600B4983D78FD9C.e.128")>←[0m ←[0m2024-07-17 11:37:52 ←[32m[INFO] [←[32mchess-log,←[32m main.py:419]←[0m←[38;20m: Is playing black pieces: False←[0m ←[0m2024-07-17 11:37:52 ←[33;20m[DEBUG]←[36m [chess-log,←[36m main.py:215]:←[0m←[38;20m <play> call took 0.000000s←[0m ←[31;20m 2024-07-17 11:37:54 [chess-log]: Traceback (most recent call last): File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 565, in loop return await actions(engine, driver) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 457, in actions await play(driver_, engine, mv_) File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 380, in play raise e File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 368, in play await wait_until(driver, C.wait_2s, find_element_and_click( File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 238, in wait_until return await CustomTask( ^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 236, in wait_until_sub return WebDriverWait(drv_, delay_).until(condition_) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\venv\Lib\site-packages\selenium\webdriver\support\wait.py", line 105, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:

How can I solve this?

Kind regards
Mark

Moving pieces

Sorry I couldn't find any other way to contact you
I'm making a chrome extension bot for chess.com also however im struggling to move the pieces i couldn't find the dom element that has the event listeners for clicking the piece in order to move it
I've tried all elements that have the mousedown, click (the board included)event listeners but couldn't make it
Can you explain me to me how did you move the pieces i'm not familiar with selenium
Thank you
[email protected]

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.