For the below line of code:
driver.find_element(By.CLASS_NAME,'list-card-heading')
I am getting below error:
NoSuchElementException Traceback (most recent call last)
Input In [23], in <cell line: 1>()
1 driver.find_element(By.CLASS_NAME,'list-card-heading')
Initially I had :
driver.find_element_by_class_name('list-card-heading')
but did some modifications in code by adding this below two lines:
from selenium.webdriver.common.by import By
driver.find_element(By.CLASS_NAME,'list-card-heading')
I was expecting to get below results:
<selenium.webdriver.remote.webelement.WebElement (session="945ae2a8da0536bea44330c4bbf0b24e", element="581cbcf9-7bb9-40dd-8601-4109cad55272")
But got this error:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".list-card-heading"}
Is it the driver issue? or selenium library issue.