-
I'm using xpra as the way to run normal browser (with GUI) inside a headless server for automation. However, the browser that xpra opens up always show a white line like following: I guess this is because xpra server will not render browser window when there are no client connection. I can verify that because I can receive the complete webpage html while no client is connecting to the server, and my script cannot click on any elements on the page because xpra is being lazy. But once I connect to the server, everything works fine. Is there a way to force xpra to render window without client connection? I'm running xpra server on a Ubuntu 22.04 machine. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No idea what that means. My guess is that the browser is not mapped on the virtual screen, hence why you can't interact with it. |
Beta Was this translation helpful? Give feedback.
-
FYI: This is not a port, it is a display number.
Using sleep is unreliable. IMO: A better approach would be to put everything in a single script you run with
You should use probably |
Beta Was this translation helpful? Give feedback.
No idea what that means.
My guess is that the browser is not mapped on the virtual screen, hence why you can't interact with it.
Try force mapping it with
xdotool
.