I have been trying to get the names of the batsmen from the page but Selenium is throwing
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".table-body__cell rankings-table__name name"}.
I am not able to get why this is happening as I am blatantly copy pasting the class name. I have tried the implicitly wait function but nothing is happening using that as well. Can someone please help me out with this.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
import pandas as pd
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
PATH = "C:\Program Files (x86)\chromedriver"
driver = webdriver.Chrome(PATH)
driver.get("https://www.icc-cricket.com/rankings/mens/player-rankings/odi/batting")
driver.implicitly_wait(20)
elements = driver.find_element_by_class_name("table-body__cell rankings-table__name name")
driver.quit()