Kantu keeps double clicking

We are trying to make a macro on kantu and we are stuck because we wanted to open this drop-down menu by clicking the grey down arrow in the picture (it should look like the screenshot with the drop-down menu open). Everything we have tried so far has somehow caused kantu to double-click the arrow, opening then immediately closing the menu.

we also have the double click issue when opening links on this website.

We have tried using click with the target being the css element, the link and using the visual system. send help pls.

I confirmed that recording creates a rather complex Xpath
//*[@id="csProfileActions_681"]/span[1]/span[2]

with a changing ID. The changing part is “681”. Therefore it does not find the select box on replay. For the Xpath solution, please see my 2nd answer below.

First I tried to solve it with visual UI automation to get the locator for click and this worked right away. Here is a screencast of my solution:

Essentially I use visualAssert twice to find

  • image of drop down arrow
  • image of text “message” from select box (opened by first click)

In both cases I use Click #efp to click on this location.

For completeness, here is the XPath solution. It uses the xpath “contains” feature:

{
  "CreationDate": "2018-7-17",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.f6s.com/innoveworkshop",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "//*[contains(@id, 'csProfileActions_')]/span[1]/span[2]",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "//*[contains(@id, 'csProfileActions_')]/span[2]/ul/li[3]/span",
      "Value": ""
    }
  ]
}