When & why to use PyAutoGUI

PyAutoGUI is one of the framework you can use to test desktop applications. Consider a case where you need to test a flow of the application and it is not in browser, you can go for PyAutoGUI. Selenium is another framework that comes to the mind when we talk about any type of testing automation but it only supports browser based automation. Selenium can not have control over locally running non-browser app. ...

May 2, 2022 · Pranav Gore

X virtual framebuffer (Xvfb)

Today, let’s talk about AWESOME X virtual frame buffer. Virtual memory to render GUI If you want to emulate the X server and want your UI apps to render over there then the answer is Xvfb . Xvfb uses frame buffer to emulate X server. Let’s install it first sudo apt update sudo apt install xvfb Basic Usage: Xvfb :111 -screen 0 1920x1080x24 & echo $! > /tmp/runxvfb.pid With this command we are creating a new display with 1920x1080 resolution and put the PID info /tmp/runxvfb.pid “:111” is the ID of the new display. We will use “:111” whenever we want to refer to that display. ...

April 22, 2020 · Pranav Gore