eracuni/browser.py
def remove_element_by_css(browser: webdriver, target: str) -> None:
    """
    Locate element by CSS selector, and remove it from DOM, with JavasScript code
    """
    browser.execute_script(f"""
    var element = document.querySelector("{target}");
    if (element)
        element.parentNode.removeChild(element);
    """)

    Locate element by CSS selector, and remove it from DOM, with JavasScript code
    
Locate element by CSS selector, and remove it from DOM, with JavasScript code
Locate element by CSS selector and remove it from DOM with JavasScript code
def remove_element_by_css(browser: webdriver, target: str) -> None:
    browser.execute_script(f"""
    var element = document.querySelector("{target}");
    if (element)
        element.parentNode.removeChild(element);
    """)
def remove_element_by_css ( browser : webdriver , target : str ) -> None : browser . execute_script ( f"""
    var element = document.querySelector("{target}");
    if (element)
        element.parentNode.removeChild(element);
    """ )
Locate element by CSS selector, and remove it from DOM, with JavasScript code
Locate element by CSS selector and remove it from DOM with JavasScript code
"""
    Locate element by CSS selector, and remove it from DOM, with JavasScript code
    """
browser
webdriver
target
str