Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using VNCScreen, the screen is not refreshing. #621

Open
xuchaoS opened this issue May 9, 2024 · 0 comments
Open

When using VNCScreen, the screen is not refreshing. #621

xuchaoS opened this issue May 9, 2024 · 0 comments

Comments

@xuchaoS
Copy link

xuchaoS commented May 9, 2024

I am using the following code for testing:

VNCScreen screen = VNCScreen.start("<ip>", 5900, "<password>", 3, 0);
for (int i = 0; i < 10; i++) {
    Thread.sleep(3000);
    screen.capture().save("<path>");
}
screen.stop();

When I check the saved screenshots, I notice that the images show no changes despite switching screens during the test, which should reflect the current time.

I'm puzzled by this. I'm using Windows 11 as the client with SikuliX version 2.0.5 and Java version 17. The server is Fedora 22 with tigervnc-server version 1.6.0, and on the local machine (also Windows 11) with tigervnc-server version 1.13.1. Despite trying various configuration changes during testing, I haven't seen any differences in the results.

I also tried using the screen.getClient().refreshFramebuffer(); method, but it didn't have any effect either.

Furthermore, in my script, if I don't use the screen.stop() operation, the script does not naturally stop, and there are no error messages. Even if I include screen.click() or screen.wait() in the script followed by screen.stop(), it doesn't work; I have to forcefully stop the script execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant