Skip to content

Commit dcf7765

Browse files
committed
typo in By.ID
AttributeError: type object 'By' has no attribute 'Id' Correct: By.ID
1 parent 5607afe commit dcf7765

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/waits.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ own utility package for them.
8383
from selenium.webdriver.support import expected_conditions as EC
8484

8585
wait = WebDriverWait(driver, 10)
86-
element = wait.until(EC.element_to_be_clickable((By.Id,'someid')))
86+
element = wait.until(EC.element_to_be_clickable((By.ID,'someid')))
8787

8888
The expected_conditions module contains a set of predefined conditions
8989
to use with WebDriverWait.

0 commit comments

Comments
 (0)