Skip to content

terolindfors/playwright-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

playwright-demo

Simple robotframework tests for demoing the use of Playwright traces with Browserlib

Dependencies

  • Python 3.7.5 or newer
  • robotframework 4.1.3 (requirements.txt)
  • robotframework-browser 11.4.0 (requirements.txt)
  • rpaframework 13.0.0 (requirements.txt)
  • tested to work with node.js v16.14.0 & pip ver. 20.0.2 & chromium-browser ver. 1:85.0.4183.83-0ubuntu0.20.04.2 (ubuntu20 specific)

Setting up robot-fw, Browserlib and Playwright

  • Create and activate new python virtualenv

  • Install node.js (for Ubuntu e.g. these instructions https://computingforgeeks.com/how-to-install-node-js-on-ubuntu-debian/)

  • pip3 install -r conf/requirements.txt (in linux)

  • rfbrowser init

  • Check that you have at least one of these installed: Chromium, Firefox, WebKit

    chromium can be installed in Ubuntu e.g. with sudo apt install --assume-yes chromium-browser

Viewing traces with Trace viewer

  • After demo_page.robot suite has been run, you can view the trace of each robot test with

rfbrowser show-trace -F <output_path>/Demo_Page_<test>_robot_trace

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published