I am trying to create a job that creates a random number generator and if it is above 3, it will hover an element on a website.
Two problems.
EC.element_to_be_clickable((By.css_selector, '.origin-telemetry-shell-submenu-current-area'))).click()
This line does not seem to work. I want to click through all these elements It gives me:
if ( ww > 3 ):
TypeError: '>' not supported between instances of 'NoneType' and 'int'
And in relation to the CSS selector line
Traceback (most recent call last):
File "C:/Users/Bain3/PycharmProjects/untitled4/ha1.py", line 53, in <module>
EC.element_to_be_clickable((By.css_selector, '.origin-telemetry-shell-submenu-current-area'))).click()
AttributeError: type object 'By' has no attribute 'css_selector'
The Css selector tends to work in Chrome and in Css Gadget.
I have attached an image and my code in textupload.