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

后端 未结 4 931
轻奢々
轻奢々 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:49

    also try:

    elements = bot.execute_script("""return document.getElementsByClassName('grid-cell-inner grid-col-name')""")
    

提交回复
热议问题