Created
June 18, 2019 18:44
-
-
Save seleniumgists/bcfead9af00555ef1d2d648e5d28d8b3 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from <http://selenium.webdriver.common.by|selenium.webdriver.common.by> import By | |
class BuildBy(By): | |
def __init__(self, by: str, value: str): | |
<http://self.by|self.by> = by | |
self.value = value | |
self.locator = (<http://self.by|self.by>, self.value) | |
@classmethod | |
def id(cls, value: str) -> 'BuildBy': | |
return BuildBy(cls.ID, value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment