*** Settings ***
Library SeleniumLibrary
*** Variables ***
${USERNAME} =
${ACCESS_KEY} =
${REMOTE_URL} = http://${USERNAME}:${ACCESS_KEY}@hub.browserstack.com/wd/hub
${BROWSER} = IE
${DC} = os:Windows,os_version:10,browser:${BROWSER},browser_version:11.0,browserstack.local:true
*** Test Cases ***
Main Test Case
Open Browser url=https://www.nytimes.com/ browser=${BROWSER} remote_url=${REMOTE_URL} desired_capabilities=${DC}
Capture Page Screenshot
*** Keywords ***
Open Firefox Browser
[Documentation] Create the object which to instantiate the Firefox browser.
${firefox_options}= Evaluate sys.modules['selenium.webdriver'].FirefoxOptions() sys, selenium.webdriver
Create Webdriver Firefox firefox_options=${firefox_options} executable_path=/path/to/geckodriver
You can see other capabilities options below:
- https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities#Vendor-specific_capabilities
- https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Capabilities.html#
*** Keywords ***
Open Chrome Browser
[Documentation] Create the object which to instantiate the Chrome browser.
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument --no-sandbox
Call Method ${chrome_options} add_argument headless
Create Webdriver Chrome chrome_options=${chrome_options} executable_path=/path/to/chromedriver
You can see other capabilities options below:
Hi, I try using and got this error

Can you please help..