I was simply wondering when using Selenium for python why there are 2 parentheses in between the element_to_be_clickable
and the By
methods, such as:
WebDriverWait(browser, 50).until(
EC.element_to_be_clickable((By.CSS_SELECTOR, "css_selector")))
This is also visble in the docs - http://selenium-python.readthedocs.io/waits.html
Any answers?
Cheers
element_to_be_clickable()
should get iterable object as argument. If parenteses confusing you, you might useEC.element_to_be_clickable([By.CSS_SELECTOR, "css_selector"])
:)tuple
is the very basics ofpython
and I'm quite sure that there is more than enough information in web about what is it, how to use it and what for..tuples
(which I know thanks) butlocators
in Selenium. And given that your comment slightly differs from the answer below, I still consider, even on second thought, that the question was legitimate :) Relax my friend