Forum Discussion

subhram_sahoo's avatar
subhram_sahoo
Occasional Contributor
2 years ago

show syntax error while executing while loop

Hi i found syntax error when implementing while loop to wait for object of my desktop application.

def test13():
Sys.WaitProperty("btnYes", 200)
Aliases.CTCUI.dlgWarning.btnYes.ClickButton()
var i = 1;
while (i < 3) {
NameMapping.Sys.CTCUI.dlgInformation.btnOK.Click();
i++;
}

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You have just provided your code, with no screenshot of the error!?