XClick with locator wrong detection

@admin @TechSupport

I use Kantu 5.1.9 for firefox ESR 60 and windows 7 italian with xmodules 201905

The latest version of kantu 5.2.3 and Xmodules Version 2019-8 in my pc do not work (I report in the forum and i see other users with same problem).

When i use xclick with a locator (id or xpath) it recognize a wrong field, It seems that the xclick command recognizes the cell preceding the selected one via id or xpath.

This is my macro code to select

{
  "Name": "Xclick Bug",
  "CreationDate": "2019-10-15",
  "Commands": [
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://ui.vision/contact",
      "Value": ""
    },
    {
      "Command": "waitForPageToLoad",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Click on Field Email To Set Focus",
      "Value": "#shownotification"
    },
    {
      "Command": "XClick",
      "Target": "id=Email",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "TEXT",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Click on Textarea Message To Set Focus",
      "Value": "#shownotification"
    },
    {
      "Command": "XClick",
      "Target": "id=Message",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "TEXT",
      "Value": ""
    }
  ]
}

Image

Thanks for the demo macro! I tested on Win 7 and all works for me:

I notice the website is in black on your screen. Is this done by an extension? Maybe this is causing the issue?

1 Like

Hi @admin

Thank you you have solved the problem I use this Dark Mode extension (WebExtension) for firefox that I use to better read the screen, now disabling it xclick works well. Thank you very much I had not thought that could be this the problem, all solved, xclick function well now thanks again.

Very interesting finding! It seems the dark mode extension does something strange with the website. It blocks the green calibration screen, and I guess this was causing the problem.

Solution:

  • Disable the dark mode extension (as you said)

  • The other solution is to switch to desktop UI automation mode since this mode does not need any browser calibration, it searches the whole desktop.

I solved changing tha firefox addon for dark mode

Now i use this addon

And kantu xclick and xtype working well and i continue to have dark mode in browser.

I tried more similar addons but with this Kantu xclick xtype working well.