I would like to use robot framework with an electron app, but based on the forum posts I’ve found this is not recommended / quite difficult to setup?
For example, how would I use robot framework to do the equivalent for an electron app like signal-desktop for instance. If I start Signal desktop like so:
signal-desktop --args --rempte-debugging-port=9000
And then I can run for instance this python-script to use selenium-library to print output if the app name is not Signal:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
options = Options()
options.debugger_address = "localhost:9000"
webdriver_path = '/usr/bin/chromedriver'
service = Service(webdriver_path)
driver = webdriver.Chrome(service=service, options=options)
assert "Signal" in driver.title
driver.quit()
Does anybody know how to initiate something similar with robot framework? In theory after the app is running in a way that exposes it properly it should theoretically work. This doesn’t, because localhost:9000 is not the app as a website:
*** Settings ***
Documentation Failing test case for integrating Electron with robot framework.
Library SeleniumLibrary
*** Variables ***
${LOGIN URL} http://localhost:9000
${BROWSER} Chrome
*** Test Cases ***
Valid Login
Open Browser To Login Page
[Teardown] Close Browser
*** Keywords ***
Open Browser To Login Page
Open Browser ${LOGIN URL} ${BROWSER}
Title Should Be Signal