@grylion54 thanks a lot for your advice, I did add Wait for Element Visible / Present prior screensharing to team here. And adding more wait time from “5” to “10”. But it mean nothing, I still got same error message after running it.
It is a very GOOD idea to compare the 2 tools. You used the Selenium IDE. You were successful with it. You also tried Katalon Studio. You were NOT successfull with KS. This implies that there could be some bug in Katalon Studio.
<<I noted this later. Your script in Selenium IDE is not identical to the script you used in Katalon Studio. In Selenium IDE, you are calling “wait for element visible” repeatedly = 3 times. In Katalon Studio, you are calling “WebUI.waitForElementVisible()” keyword only once. You are executing quite diffent tests! So the results could be different. The comparison proves nothing meaningful.>>
I have checked the source code of Katalon’s WebUI.click keyword but I could not find any quick answer to the “stale element reference” problem. I still have no idea. I am afraid, it would require insensive debugging to find a bug in Katalon Studio. I want some Katalon Staff to look into this
Thank you so much for a great discussion. Hope that all of us can learn a lot from this discussion. In the meantime, I will note this case down and collect other cases for us to investigate the issue. @jirayu.s Hope you have found the workaround for your case. If not, feel free to raise another thread so that we can focus on your problem much better.
Are you a paying user? If so, you are qualified to raise an official support request to Katalon. You should do it. It would make their internal communication in the team easier. The official request will ensure your issue to be addressed by the development team. A debates in the user forum might not be enough to let them work for you.
For ref, here’s the script I use for the exact same login - mine doesn’t start with ‘log in via Microsoft Azure’ button click but your screenshots after that step look the same. I haven’t got around to checking whether a hardcoded delay of 5 seconds is vital but feel free to try it out:
Hi DAN, based on your script, it seems that the above two lines were different from mine. And for 'Log in via Microsoft Azure, it was redirect from our low code main page. But after click Log in vi Microsoft Azure, we’re on the same log in page. But why your line differ from mine. T__T