from selenium import webdriver
from web_source.web import Web


def browser_chrome(context, timeout=30, **kwargs):
    # desired_capabilities = webdriver.DesiredCapabilities.CHROME
    # desired_capabilities['version'] = 'latest'
    # desired_capabilities['platform'] = 'WINDOWS'
    # desired_capabilities['name'] = 'Testing Selenium with Behave'
    #
    # browser = webdriver.Remote(
    #     desired_capabilities=desired_capabilities,
    #     command_executor="http://localhost:4445/wd/hub"
    # )
    # web = Web(browser)
    # context.web = web
    # yield context.web
    # browser.quit()
    browser = webdriver.Chrome(executable_path="/drivers/chromedriver.exe")
    web = Web(browser)
    context.web = web
    yield context.web
    browser.quit()

6754fa42887a7a75a028e7350e6066b0f9fe1398
<mask token>

<mask token>


def browser_chrome(context, timeout=30, **kwargs):
    browser = webdriver.Chrome(executable_path='/drivers/chromedriver.exe')
    web = Web(browser)
    context.web = web
    yield context.web
    browser.quit()

from selenium import webdriver
from web_source.web import Web


def browser_chrome(context, timeout=30, **kwargs):
    browser = webdriver.Chrome(executable_path='/drivers/chromedriver.exe')
    web = Web(browser)
    context.web = web
    yield context.web
    browser.quit()

from selenium import webdriver
from web_source.web import Web


def browser_chrome(context, timeout=30, **kwargs):
    # desired_capabilities = webdriver.DesiredCapabilities.CHROME
    # desired_capabilities['version'] = 'latest'
    # desired_capabilities['platform'] = 'WINDOWS'
    # desired_capabilities['name'] = 'Testing Selenium with Behave'
    #
    # browser = webdriver.Remote(
    #     desired_capabilities=desired_capabilities,
    #     command_executor="http://localhost:4445/wd/hub"
    # )
    # web = Web(browser)
    # context.web = web
    # yield context.web
    # browser.quit()
    browser = webdriver.Chrome(executable_path="/drivers/chromedriver.exe")
    web = Web(browser)
    context.web = web
    yield context.web
    browser.quit()
