Я пытаюсь запустить тестовые случаи с каркасом робота, используя браузер без головы
Версия моего браузера Google: 77.0.3865.75 Chrome Драйвер: 77.4 python: 2.7 Версия робота: 3.1.2
код входа в систему моего ключевого слова:
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys,
selenium.webdriver
${prefs} Create Dictionary credentials_enable_service=${false}
Call Method ${chrome_options} add_experimental_option prefs ${prefs}
Call Method ${chrome_options} add_argument start-maximized
Call Method ${chrome_options} add_argument --headless
Call Method ${chrome_options} add_argument --disable-gpu
Call Method ${chrome_options} add_argument --window-size\=1920,1080
Create Webdriver Chrome chrome_options=${chrome_options}
${BROWSER} Chrome
Capture Page Screenshot
Open Browser ${LOGIN URL} ${BROWSER}
#Maximize Browser Window
Set Browser Implicit Wait 5
Ошибка получения:
ValueError: mozilla/5.0(windowsnt6.1)applewebkit/533.1(khtml,likegecko)chrome/36.0.801.0safari/533.1 is not a supported browser.
Полная ошибка:
20200404 11:53:27.076 : INFO : ${chrome_options} = <selenium.webdriver.chrome.options.Options object at 0x048F8090>
20200404 11:53:27.077 : INFO : ${prefs} = {u'credentials_enable_service': False}
20200404 11:53:27.080 : INFO : Creating an instance of the Chrome WebDriver.
20200404 11:53:32.204 : INFO : ${BROWSER} = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/533.1 (KHTML, like Gecko) Chrome/36.0.801.0 Safari/533.1
20200404 11:53:32.528 : INFO : </td></tr><tr><td colspan="3"><a href="selenium-screenshot-1.png"><img src="selenium-screenshot-1.png" width="800px"></a>
20200404 11:53:32.528 : INFO : Opening browser 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/533.1 (KHTML, like Gecko) Chrome/36.0.801.0 Safari/533.1' to base url 'localhost:3000'.
20200404 11:53:32.865 : INFO : </td></tr><tr><td colspan="3"><a href="selenium-screenshot-2.png"><img src="selenium-screenshot-2.png" width="800px"></a>
20200404 11:53:32.867 : FAIL : ValueError: mozilla/5.0(windowsnt6.1)applewebkit/533.1(khtml,likegecko)chrome/36.0.801.0safari/533.1 is not a supported browser.
Ending test: Daily Work Order Test cases.4.4.4. Daily WO - Cancel WO Test cases.4.5.4.2.1_dailywo_cancelwo_wrngwo