Reputation: 1
For my automated end to end tests , i'm using robot framework and playwirght in a docker container. I'm trying to paste the content of the clipboard into a new browser page . How ever the paste action is returning an empty string .
def get_clipboard_value(self):
"""Returns the current value in the clipboard."""
return pyperclip.paste()
In my docker file , i have installed xclip and xsel and also graphic launcher entry point.
xclip \
xsel \
xvfb \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm-dev \
libpango-1.0-0 \
libasound2 \
libpangocairo-1.0-0 \
libgtk-3-0 \
libx11-xcb1 \
I do not have any other idea to make it work.
Here is also the result of my execution showing that invitation_link is empty
${invitation_link} = utils . Get Clipboard Content
Documentation:
Returns the current value in the clipboard.
Start / End / Elapsed: 20250123 15:29:44.958 / 20250123 15:29:44.969 / 00:00:00.011
15:29:44.970 INFO ${invitation_link} =
I thank you in advance .
Upvotes: 0
Views: 29