Timeout reached when looking for element in verify present element

hi
I want my page to refresh until the element loads but After refreshing several times
verfy elemet present error timeout reached when looking for element

{
  "Name": "if page 1",
  "CreationDate": "2022-1-25",
  "Commands": [
    {
      "Command": "store",
      "Target": "1",
      "Value": "!timeout_wait",
      "Description": ""
    },
    {
      "Command": "label",
      "Target": "tryagain",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://forexample.com",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "2",
      "Value": "!timeout_wait",
      "Description": ""
    },
    {
      "Command": "verifyElementPresent",
      "Target": "linkText=click here",
      "Value": "click here",
      "Targets": [
        "linkText=click here",
        "xpath=//*[@id=\"technical_item_4\"]/a",
        "xpath=//div[5]/a",
        "css=#technical_item_4 > a"
      ],
      "Description": ""
    },
    {
      "Command": "gotoIf_v2",
      "Target": "${!statusOK} == false",
      "Value": "tryagain",
      "Description": ""
    }
  ]
}

Do you have a test case with a real URL?

One possible workaround is to use visualAssert for waiting.

yes , test url real but This message will be issued after the bet is executed several times

I would need the real URL, or maybe at least a screen video of the issue.

{
“Name”: “if page 1”,
“CreationDate”: “2022-1-26”,
“Commands”: [
{
“Command”: “store”,
“Target”: “1”,
“Value”: “!timeout_wait”,
“Description”: “”
},
{
“Command”: “label”,
“Target”: “tryagain”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “comment”,
“Target”: “dfdsadas - Google Search”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!statusOK”,
“Description”: “”
},
{
“Command”: “verifyElementPresent”,
“Target”: “xpath=/html/body/div/div[3]/form/div/div/div[3]/center/input”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “gotoIf_v2”,
“Target”: “${!statusOK} == true”,
“Value”: “tryagain”,
“Description”: “”
}
]
}

===================================================================
error in line 5

Line 5: timeout reached when looking for element ‘xpath=/html/body/div/div[3]/form/div/div/div[3]/center/input’

Hi @mosi_rad , I will suggest you to add validation for element not present , and then use refresh command instead of giving URL
Or you can increase timeout from 1 to 20 → wait for element visible/present → reset timout to 1 again