Exemple #1
0
def amazon(
    no_image,
    headless,
    test,
    delay,
    checkshipping,
    detailed,
    used,
    random_delay,
    single_shot,
    no_screenshots,
):
    if no_image:
        selenium_utils.no_amazon_image()
    else:
        selenium_utils.yes_amazon_image()

    amzn_obj = Amazon(
        headless=headless,
        notification_handler=notification_handler,
        checkshipping=checkshipping,
        random_delay=random_delay,
        detailed=detailed,
        used=used,
        single_shot=single_shot,
        no_screenshots=no_screenshots,
    )
    amzn_obj.run(delay=delay, test=test)
Exemple #2
0
def amazon(no_image, headless, test):
    if no_image:
        selenium_utils.no_amazon_image()
    else:
        selenium_utils.yes_amazon_image()

    amzn_obj = Amazon(headless=headless)
    amzn_obj.run_item(test=test)
Exemple #3
0
def amazon(no_image, headless, test, delay):
    if no_image:
        selenium_utils.no_amazon_image()
    else:
        selenium_utils.yes_amazon_image()

    amzn_obj = Amazon(headless=headless,
                      notification_handler=notification_handler)
    amzn_obj.run_item(delay=delay, test=test)
Exemple #4
0
def amazon(no_image, headless, test, config_file):
    if no_image:
        selenium_utils.no_amazon_image()
    else:
        selenium_utils.yes_amazon_image()

    amzn_obj = Amazon(headless=headless,
                      notification_handler=notification_handler,
                      config_file=config_file)
    amzn_obj.run_item(test=test)
Exemple #5
0
def amazon(no_image, headless, test, delay, checkshipping, detailed):
    if no_image:
        selenium_utils.no_amazon_image()
    else:
        selenium_utils.yes_amazon_image()

    amzn_obj = Amazon(
        headless=headless,
        notification_handler=notification_handler,
        checkshipping=checkshipping,
        detailed=detailed,
    )
    amzn_obj.run_item(delay=delay, test=test)