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
vncscreen.click('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

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-07-24
Last reply:
2018-07-25
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

Okay

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("192.168.2.120")
if not vs:
  print "no connection"
  exit()
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
vs.stop()

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

... 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.