Link click is not working but works in iMacros and Selenium IDE

We started looking to replace iMacros and need some help with a link that works fine in iMacros and Selenium IDE, but does nothing in Ui.Vision even thou it seems to click the text correctly. I even imported the Solenium macro in Ui.Vision, but it still does not work. I cannot share the exact URL because it’s password secured. Here is Ui.Vision code that fails and the one from iMacros and Selenium IDE that work. I also tried using the XClick instead, but it did not work as well. Any help is appreciated:

Ui.Vision

{
      "Command": "XClick",
      "Target": "linkText=All",
      "Value": "",
      "Targets": [
        "linkText=All",
        "id=ctl00_contentPlaceHolderMain_lnkAll",
        "xpath=//*[@id=\"ctl00_contentPlaceHolderMain_lnkAll\"]",
        "xpath=//a[@id='ctl00_contentPlaceHolderMain_lnkAll']",
        "xpath=//td/div/div/a",
        "css=#ctl00_contentPlaceHolderMain_lnkAll"
      ],
      "Description": ""
    }

iMacros

FRAME NAME=main
TAG POS=1 TYPE=A ATTR=ID:ctl00_contentPlaceHolderMain_lnkAll

Selenium IDE

{
      "id": "f8758db8-eb74-493e-999c-ab33d28acd7b",
      "comment": "",
      "command": "click",
      "target": "id=ctl00_contentPlaceHolderMain_lnkAll",
      "targets": [
        ["id=ctl00_contentPlaceHolderMain_lnkAll", "id"],
        ["linkText=All", "linkText"],
        ["css=#ctl00_contentPlaceHolderMain_lnkAll", "css:finder"],
        ["xpath=//a[contains(text(),'All')]", "xpath:link"],
        ["xpath=//a[@id='ctl00_contentPlaceHolderMain_lnkAll']", "xpath:attributes"],
        ["xpath=//div[@id='ctl00_contentPlaceHolderMain_pnlAll']/a", "xpath:idRelative"],
        ["xpath=//a[contains(@href, 'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(\"ctl00$contentPlaceHolderMain$lnkAll\", \"\", true, \"\", \"\", false, true))')]", "xpath:href"],
        ["xpath=//td/div/div/a", "xpath:position"],
        ["xpath=//a[contains(.,'All')]", "xpath:innerText"]
      ],
      "value": ""
    }

Also, i just right clicked the link and here is the address it goes to, which is a javascript:

javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(“ctl00$contentPlaceHolderMain$lnkAll”, “”, true, “”, “”, false, true))

Update:
I was able to get it to work by adding the following step, but really wish there is a better way, why is not working without it?

   {
      "Command": "executeScript",
      "Target": "WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(\"ctl00$contentPlaceHolderMain$lnkAll\",\"\", true, \"\", \"\", false, true))",
      "Value": "",
      "Description": ""
    }

Ah, that is a pity. If you come across a similar issue on a public website, please let us know. This sounds like something that is easy to fix once we can debug it.

Frame is missing in ui vision code

The frame selection code was not included in my post for brevity. It is included in the macro. The issue is not that it does not find the element to click, which it does, and it clicks it, but apparently the JavaScript that it needs to be executed by the click is not being executed, so I have to add a separate step to execute it. There are other posters reporting the same issue. Thank you.

without access to webpage can’t say
try desktop automation to click the element
maybe it will not execute JavaScript too

  1. I do see an xclick in your Kantu script. In Selenium you use “click”. Try to use “click” instead in Kantu.
  2. If that does not help (I had the same issue because chrome security policy would prevent this) I used a JavaScript click instead that worked wonderfully:
    {
    “Command”: “executeScript”,
    “Target”: “var myButton = document.getElementById(‘duel_select_0_right’);myButton.click();”,
    “Value”: “”,
    “Description”: “-> [Add]”
    },

I used click first, but it did not work also. iMacros and Selenium IDE work fine with Chrome.