Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created June 18, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/bcfead9af00555ef1d2d648e5d28d8b3 to your computer and use it in GitHub Desktop.
Save seleniumgists/bcfead9af00555ef1d2d648e5d28d8b3 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
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