What are the desired features that we need to consider when uninstalling firefox browser remotely via selenium
I need to start Firefox browser on a remote machine using Robot test case.
My environment: RHEL 6.9 Santiago, python: 2.6.6, Rebot 2.9.1, selenium2library
firewall rule created to access the remote computer (xxxx: 4444 /), so access to the remote endpoint is not a problem.
Successfully configured selenium mesh running on remote machine
Remote computer configuration details: Selenium 3.4.0 standalone server, Firefox browser version: 53.0.3 (32 bit)
This is my test case for a robot
*** Settings ***
Library SSHLibrary
Library Selenium2Library
*** Keywords ***
Start Browser
[Arguments] ${navigation}
${dict} BuiltIn.Create Dictionary seleniumProtocol=WebDriver maxInstances=2 environment=firefox
Open Browser ${navigation} firefox None http://192.168.1.1:4444/wd/hub desired_capabilities=${dict}
*** Test Case ***
Start Browser http://www.google.com
I get the following error when running the test case from my PC. Error message
19: 50: 36.131 INFO Opening browser 'firefox' for base url
'http://www.google.com'
via remote server at'http://x.x.x.X:YY/wd/hub'
19: 50: 36.131 WARN Keyword "Capture Page Screenshot" cannot be started on crash: no browser open
19: 50: 36.131 INFO / usr / lib / python2.6 / site-packages / selenium / webdriver / remote / webdriver.py: 97: DeprecationWarning: use FirefoxOptions to configure the browser profile DeprecationWarning)
19: 50: 36.132 FAIL KeyError: 'requiredCapabilities'
What's wrong with this approach? Any suggestions?
source to share
No one has answered this question yet
Check out similar questions: