Error:"To open a new tab, a valid URL is needed"

Hello everybody,

selectWindow and open commands are sometimes causing very long page load times when i run my script in loop mode. it seems to happen by accident. sometimes the page loads fast, sometimes very slow (about 30-40s).

btw i made a speed test with my computer. result: 33 mbit/s download. 3.5 mbit/s upload.

whenever the page load is too long, kantu shows the following error after 20-30s:

“To open a new tab, a valid URL is needed”

and goes on to the next loop.

thank you

hi guys, i found a solution to the problem by using selectwindow, open and waitforelementpresent command in combination with variable !TIMEOUTE_WAIT.
by calling up the page not directly via select window but via open, i avoid the error. that i have to open the page in a new tab cannot be avoided for control reasons.

it now looks like this:

“Command”: “store”,
“Target”: “60”,
“Value”: “!TIMEOUT_WAIT”
“Command”: “selectWindow”,
“Target”: “TAB=OPEN”,
“Value”: “
“Command”: “open”,
“Target”: “https://www…”,
“Value”: “”
“Command”: “waitForElementPresent”,
“Target”: “xpath=//*[@id=“upload-image-drop-zone”]/div[4]”,
“Value”: “”

it’s very helpful that !TIMEOUT_WAIT can be changed within the script, because i am using the waitforelement multiple times and don’t want it always be set to 60s.
i hope it helps anyone.