Misc
Automate Browser Testing with Selenium
4min
brightsign users running brightsignos 8 3 22 or above can now automate browser testing using the selenium webdriver https //www selenium dev/documentation/en/webdriver/ and rohtmlwidget docid\ xljq5 yhdma2ssmpzimtk previously, selenium could not establish a connection to brightsign devices due to version number incompatibility the selenium webdriver can connect to rohtmlwidget through the debugging webpages docid 4qlk1krr1cnx7xypwxry5 and drive test cases to establish this, enable a remote debugging port on rohtmlwidget rohtmlwidget creation rect=createobject("rorectangle", 0, 0, width, height) config = { 	inspector server {port 6813} 	url "about\ blank" } htmlwidget = createobject("rohtmlwidget", rect, config) the chrome webdriver and brightsign chromium version must match chromium 69 is built into brightsignos 8 3, so specify chromedriver 2 41 0 in package json package json { "dependencies" { "chromedriver" "2 41 0", "selenium webdriver" " " } } the code block below connects to the remote inspector and loads a web page, showing how selenium connects to a player and sends commands remote access (which is an optional parameter) is enabled here main js // main js var chromedriver = require('chromedriver'), // auto install chromedriver webdriver = require('selenium webdriver'), by = webdriver by, until = webdriver until; var chrome = require("selenium webdriver/chrome"); var options = new chrome options(); options options \["debuggeraddress"] = "172 30 1 192 6813"; // replace this with your own remote ip/port var driver = new webdriver builder() forbrowser('chrome') setchromeoptions(options) build(); function start() { driver get('https //www brightsign biz'); settimeout(function () {console log('finished');}, 10000); } process on('sigterm', function shutdown() { driver quit(); }); start(); the selenium test tar gz file below is a sample application it should be extracted and installed on a desktop pc using npm install https //archbee doc uploads s3 amazonaws com/tyaqenq txckpox4eakhe axdu1to1fbh6fyl5iigmd 20250415 183456 gz this autorun brs must be installed on the brightsign player https //archbee doc uploads s3 amazonaws com/tyaqenq txckpox4eakhe fwzmvrrptzp9vuuozgyns 20250415 183605 brs