0

Using the answer given here I created a similar expression to check for an element:

elem = WebDriverWait(browser, 10).until((EC.visibility_of_element_located(By.XPATH, "//input[@placeholder='Search in your collabs']")))

However, I get the following error:

...
elem = WebDriverWait(browser, 10).until((EC.visibility_of_element_located(By.XPATH, "//input[@placeholder='Search in your collabs']")))
TypeError: __init__() takes exactly 2 arguments (3 given)

But according to the example and the documentation that should be a correct expression! So why does it still fail (python2.7)?

Alex
  • 41,580
  • 88
  • 260
  • 469

1 Answers1

-1

Syntax issue. See first comment by Florent B.

Würgspaß
  • 4,660
  • 2
  • 25
  • 41