Coder Social home page Coder Social logo

carp's Issues

[Add]

[Add] xinshipu robot.

12306 bot查询放票时间报错

[ With version ]
-- python:3.11
-- selenium:4.2.0 4.17.0 4.10.0
-- webdriver:

[ Detailed description ]
-- It is best to provide some screenshot methods to allow reproduction.
2024-01-23 15:12:45,149 - Carp - INFO ==> 'WebElement' object has no attribute 'find_element_by_xpath'
2024-01-23 15:12:45,151 - Carp - INFO ==> Traceback (most recent call last):
File "D:\Code\carp\src\robot_master.py", line 55, in start_task
self.robot.run_task()
File "D:\Code\carp\robots\railway_robot.py", line 16, in run_task
self.check_time()
File "D:\Code\carp\robots\railway_robot.py", line 61, in check_time
station = row.find_element_by_xpath('.//div[@Class="sale-station-name"]').text
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebElement' object has no attribute 'find_element_by_xpath'
我看4.3之后selenium砍掉了这个函数,但是_re已经改好了,不知道还有哪里有问题

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.