Button with javascript does not trigger since 7.0.11

thank you for always following up with issues.

As for xClick it appears it seems to click on the location but then the mouse rests next to the object that I try to click. It appears to me that the xClick does not target the elements properly. Instead in reality it clicks below and right to the targeted element

Here is an example where I try to click on “Rare” which is does but without any effect and the mouse then comes to a “rest” next to it. I have seen this now on other of our websites as well where I use xClick.

Second is a situation (second screen shot). It suppose to click the the upper slider but instead it clicks on the “Medium” element which happen to be located a little bit be more down to the right.
Note: this section is in an IFrame I have to reference first

{
“Command”: “selectFrame”,
“Target”: “index=0”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “xpath=(//span[text()=‘Rare’])”,
“Value”: “”,
“Description”: “”
},

image

For both tasks I recommend that you try the new local RPA OCR. This also avoids dealing with the iFrame. The commands would be:

  1. XClick | ocr=Rare

  2. XClick | ocr=Possible

image

Hi,

  1. I tried to use Click, that is not not working
  2. Then I try a proposed work around the issue using xClick, also not working.
  3. Then I try a work around for a work around xClick with ORC, still not working, not targeting the right element / location (as described above few times) It does not target the right location on the website to click on the desire element. It clicks into the web site but of the desire target:
    My code
    {
    “Command”: “bringBrowserToForeground”,
    “Target”: “”,
    “Value”: “”,
    “Description”: “”
    },
    {
    “Command”: “XClick”,
    “Target”: “ocr=Rare”,
    “Value”: “”,
    “Description”: “”
    },

results to:
image

image

THIS USED TO WORK WITH VERSION 7 BUT BROKE IN VERSION 8. Maybe when you did implement the new ORC engine you broke something for xClick.

It seems as somehow the XClick calibration fails on your system. Is the browser zoom level set to 100%?

Test: If you run the included DemoXClick and DemoXMove macros, do they work ok?

They work fine in my test with V8.0.1 just now:

Hi,

  1. Browser is on zoom 100%. (That would have been a good catch I was not thinking about)
  2. DemoXclick is failing inside of the script: [error]
    Line 3: timeout reached when looking for element ‘linkText=will click this link’
  3. xMove seems to do some things in the page but does not move any sliders. Ends with the error message: * [error] Line 17: Expected variable warmth to be 2000, but it is 1300

UPDATE: I had to set my Chrome browser to Zoom 110% to make it all work! It does not work on Zoom 100%!. Can we fix this to make it work with zoom 100%?

Ok, now that is super strange. It should be just the other way around :thinking:

Does it mean the Salesforce XClick works with zoom 110% as well?

If so, maybe try using a fresh (new ) Chrome profile and reinstall UI Vision there.

Hi,

  1. Yes xClick and your ORC only works when I set my zoom level to 110%
  2. xClick does not work with any website (not just Salesforce but also does not work work with yours) when my browser is set to zoom 100%
  3. I reinstalled Kantu but it did not resolve the issue
  4. I can not reinstall my chrome browser and find out if that resolved the issue
  5. I can not work with the work around to set my browser to be set to 110% every time I run kantu scripts. So I would appreciate if that bug can be investigated and be fixed.

NOTE: It seems to have an impact if either the browser window is maximized or not. It only runs xClick on 110% if the browser window is maximized.

Please keep in mind that I have not seen this issue in version 7. It seems to be introduced in version 8.
Is it possible to roll back to version 7?

Please let me know if you have any other questions.
Regards
Hendrik Kupfernagel

You do not need to reinstall Chrome to test this. Adding a new, fresh profile should do the same:

We have no other reports of this “110%” issue, so at the moment my best guess is a corrupted Chrome profile.

OK, So when I created a new profile it actually worked which made me my head scratching. And then I found out what the issue was (you might want to add this to your resolution note):

What what happened was that not the browser was off 100% zoom but the Kantu console window was NOT set to zoom normal !!!
No idea how it had changed but once I set it back to “Norma” everything went well. Also interesting is that the zoom offset from the Kantu console survived when I reinstalled it.

I had to create an account just to thank both of you
turns out that zooming was also the issue for me after much searching for two days
I am using Edge browser which allows vertical tabs but he has a side effect of zooming your page to 110 thank you it works now