Sometimes command "Click" didn't work.

Although command “Click” did executed,but the corresponding button not be clicked.It would happen occasionally.I tried to adjust mouse click delay and other VNC run options,but no effect.I have to use below workarounds.

For example:

MoveTo “Create_Table_Button”
MouseButtonDown 1
MouseButtonUp 1

or

Drag “Create_Table_Button”
Drop “Create_Table_Button”

How can I solve this issue?

I guess I found some clews.

If the mouse’s current position is far away from the image you want to click,so operation “click” would not take effect.

I had to add command “MoveTo” before every “Click” occurrences.

So am I right in understanding that you have a button called “Create Table” that you’d like to click and the “Click” command is not working. However you can click the button using your workarounds?

Is this the only button that you have problems clicking? What version of eggPlant are you using (Windows/Mac/Linux)? What VNC are you using (Real/Ultra/Other)?

Could you post an image of the button in question?

Yes,it is as you understood.My workaround could work.

Is this the only button that you have problems clicking?
No,all buttons have same problem.

What version of eggPlant are you using (Windows/Mac/Linux)? What VNC are you using (Real/Ultra/Other)?
eggPlant version:Windows XP
VNC server:Real

Please see attached image.

Hmm, that is strange. For a start, I hope you’re changing the button to “Create Table” rather than “Creat Table” :wink:

Anyway, back on topic…

What platform is this software running on Win XP?

Are you having any issues when you click the buttons yourself? I would suggest creating a script in a helper suite called “Clicker” and call that when you want to click a button.

So your helper script would look like this:

to Clicker imageToClick
  MoveTo imageToClick
  MouseButtonDown 1 
  MouseButtonUp 1
end Clicker

Save the script as “Clicker” in a suite called “Functions” and add that suite to the suite your script resides in so then your script would just have the command:

Clicker "Create_Table_Button"

That’s what I’d do if you’re getting no joy with the run preferences within eggPlant.

“Creat Table” must be spelling mistake.

I could click this button by myself without any issues.

?What platform is this software running on Win XP? ?

Did you mean what platform is the SUT? It’s vxWork.

And thank for your helper script.It could work well.