Selenium python find_element_by_class_name() stopped working from v 2.2 to 2.21 — cannot use 'Compound Class Name'

后端 未结 4 932
轻奢々
轻奢々 2020-12-09 12:00

I am using Selenium\'s python library to scrape data from a html page in Firefox.

I have had to update from Selenium 2.0 to 2.21 because the server has updated Firef

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 12:39

    Selenium hasn't supported compound class names for a very long time I thought.

    Needless to say, try via XPath or CSS selector or by the class name of "grid-cell-inner" then filtering to see what elements have the class of "grid-cell-inner grid-col-name".

提交回复
热议问题