Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- How to find Label for elements
- <label for="categories\\\_36">
- <label for="categories\\\_38">
- <label for="categories\\\_6">
- '''
- all_categories = driver.find_elements(By.XPATH,'//label[contains(@for,\'categories\')]')
- all_categories = driver.find_elements(By.XPATH,"//label[contains(.,'categories')]")
- all_categories = driver.find_elements(By.CSS_Selector, "[id*='chipCat']")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement