Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify method calls by using by="css selector" instead of by=By.CSS_SELECTOR #1334

Closed
mdmintz opened this issue May 25, 2022 · 0 comments · Fixed by #1339
Closed

Simplify method calls by using by="css selector" instead of by=By.CSS_SELECTOR #1334

mdmintz opened this issue May 25, 2022 · 0 comments · Fixed by #1339
Assignees
Labels
enhancement Making things better SeleniumBase 3 SeleniumBase 3

Comments

@mdmintz
Copy link
Member

mdmintz commented May 25, 2022

Simplify method calls by using by="css selector" instead of by=By.CSS_SELECTOR.

...because if you ever want to change it, (not that you'd need to since there's auto-detection between CSS and XPath), then you would need an extra import in your tests unless you know the values of the by constants:
from selenium.webdriver.common.by import By

@mdmintz mdmintz added enhancement Making things better SeleniumBase 3 SeleniumBase 3 labels May 25, 2022
@mdmintz mdmintz self-assigned this May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making things better SeleniumBase 3 SeleniumBase 3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant