<gh_stars>100-1000
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn


def open_browser(host):
    url = f"http://{host}.com/"
    sl = BuiltIn().get_library_instance("SeleniumLibrary")
    sl.open_browser(url, "chrome")


def get_browser_desired_capabilities():
    logger.info("Getting currently open browser desired capabilities")
    sl = BuiltIn().get_library_instance("SeleniumLibrary")
    return sl.driver.desired_capabilities
