eracuni/browser.py
def find_first_by_id(browser: webdriver, target: str) -> webdriver:
    """
    Locate web element by id attribute
    Return first one
    Catch No Such Element Exception error, report problem to stderr and quit with exit code 1
    """
    try:
        element = browser.find_element_by_id(target)
        return element
    except NoSuchElementException:
        print(f"Can't find id: {target}", file=sys.stderr)
        browser.quit()
        sys.exit(1)

    Locate web element by id attribute
    Return first one
    Catch No Such Element Exception error, report problem to stderr and quit with exit code 1
    
Locate web element by id attribute
Return first one
Catch No Such Element Exception error, report problem to stderr and quit with exit code 1
Locate web element by id attribute Return first one Catch No Such Element Exception error report problem to stderr and quit with exit code 1
def find_first_by_id(browser: webdriver, target: str) -> webdriver:
    try:
        element = browser.find_element_by_id(target)
        return element
    except NoSuchElementException:
        print(f"Can't find id: {target}", file=sys.stderr)
        browser.quit()
        sys.exit(1)
def find_first_by_id ( browser : webdriver , target : str ) -> webdriver : try : element = browser . find_element_by_id ( target ) return element except NoSuchElementException : print ( f"Can't find id: {target}" , file = sys . stderr ) browser . quit ( ) sys . exit ( 1 )
Locate web element by id attribute
Return first one
Catch No Such Element Exception error, report problem to stderr and quit with exit code 1
Locate web element by id attribute Return first one Catch No Such Element Exception error report problem to stderr and quit with exit code 1
"""
    Locate web element by id attribute
    Return first one
    Catch No Such Element Exception error, report problem to stderr and quit with exit code 1
    """
browser
webdriver
target
str