Uploading of photos doesnt work

timeout reached when looking for element ‘id=html5_1e1o0u1ckb2nijv1v1o60k12u44’

Just to clarify: So the problem is that the locator (of TYPE) is not found, because the locator changes after every page load? Then partial ID matching is the solution.

The first idea might be to use:

id=html5_* <= does NOT work, no * supported with the ID locator (Selenium syntax rule)

Unfortunately using the asterisk * does not work with Selenium IDE syntax that UI.Vision RPA uses, too.

The solution is to use the XPath contains command:

xpath=//*[contains(@id,"html5_")]" :point_left: solution

My demo test (different website): You see that with ID I have to use the full ID (“Email” here) but with contains I can just use “Em”.

{
  "Name": "idtest",
  "CreationDate": "2020-3-25",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/contact",
      "Value": ""
    },
    {
      "Command": "type",
      "Target": "id=Email",
      "Value": "Only full ID"
    },
    {
      "Command": "type",
      "Target": "//*[contains(@id,\"Em\")]",
      "Value": "Partial ID works!"
    }
  ]
}