VNC not working properly

Asked by Ven Karri on 2018-07-11

Let's take an example:

vncscreen = sikulix.vncStart('xxx', 5901, 'password') # works perfect
vncscreen.capture() # works perfect -- gets a screen capture of the initial screen that just connected'firefox_image.png') # works perfect -- clicks on 'firefox' icon and opens the firefox browser
vncscreen.wait(10.0) # works perfect i.e., waits for 10 seconds
vncscreen.capture() # FAILS -- still gives the original (initial) screen capture
vncscreen.find('something in the firefox browser') # FAILS -- obviously, because it's still stuck in the original screen

Any ideas/suggestions would be greatly appreciated.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
Ven Karri (imperialguy) said : #1

Also, FYI: Running Tiger VNC Server on Cent OS 7

RaiMan (raimund-hocke) said : #2

what SikuliX?

Ven Karri (imperialguy) said : #3

The latest nightly build 1.1.3

RaiMan (raimund-hocke) said : #4

ok, I have to check.

... will try my very best ;-)

Ven Karri (imperialguy) said : #5

Okay thanks

Ven Karri (imperialguy) said : #6

Hi Raiman, any updates on this?

RaiMan (raimund-hocke) said : #7

Sorry, other priorities.
Earliest during monday.

Ven Karri (imperialguy) said : #8


RaiMan (raimund-hocke) said : #9

Sorry for the delay.

I tested with 1.1.3 on a macOS 10.13 against a TightVNC-Server running on a Windows 10 machine.

Everything worked as expected.

# test script
vs = vncStart("")
if not vs:
  print "no connection"
img = "_selectTask.png"
vs.doubleClick(img) # opens a new frontmost window
vs.hover("_actOnTask.png") # image inside the new window
if vs.exists("_actOnTask.png"): # again search the image
  vs.type(Key.F4, Key.ALT) # close window

I captured the images with a helper script:
vs = vncStart("")
if not vs:
  print "no connection"
wait(1) # to avoid a black screen at startup
cap = vs.userCapture("capture")
if cap:
  image = input()

... and then loaded the images to the working script using "Insert Image" in the IDE

So there must be something in your special setup, where I cannot help you, sorry.

Ven Karri (imperialguy) said : #10

No worries.

I think the problem is specific to Cent OS.

Is there anyways you can test it against Tiger VNC server running on Cent OS (with any GUI you prefer, I use xcfe) ?

RaiMan (raimund-hocke) said : #11

--- you can test it against Tiger VNC server running on Cent OS
Sorry, I cannot do that: lack of time, resources and Linux know-how.

Can you help with this problem?

Provide an answer of your own, or ask Ven Karri for more information if necessary.

To post a message you must log in.