BP79
13 years agoNew Contributor
.NET pop up seen as a Unexpected window
Hi,
In my testcase i need to open a pop up and add some tekst. But the pop-up is not accesable with TC 8.7.
The error given is: Unexpected window
Sys.Process("Norma").WinFormsObject("WijzigOpmerking")Sys.Process("Norma").WinFormsObject("WijzigOpmerking")
In my tested apps Norma (the name of the software program) is installed right. (runmode: Simple)
All .NET Extentions are puged in.
It looks like TC doesn't see the pop up is from Norma.
See script below. Bold is my comment.
Sub WRL_T_004_Slecteer_bovenste_patient()
'Clicks the 'WindowsForms10Window8app0215472d' grid cell at row 0, column 'Opmerking' at point (72, 9).
Call (This opens the pop-up) Aliases.Norma.wndWindowsForms10Window8app0215472d1.WindowsForms10Window8app0215472d.WindowsForms10Window8app0215472d.SplitContainerControl1.Panel2.WindowsForms10Window8app0215472d.WindowsForms10Window8app0215472d.ClickCellXY(0, "Opmerking", 72, 9)
'Clicks at point (364, 13) of the 'LayoutControl1' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.Click(364, 13)
'Clicks at point (362, 30) of the 'LayoutControl1' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.Click(362, 30)
'Clicks at point (368, 56) of the 'TextBoxMaskBox' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.MemoOpmerking.TextBoxMaskBox.Click(368, 56)
'Enters ' pop' in the 'TextBoxMaskBox' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.MemoOpmerking.TextBoxMaskBox.Keys(" pop")
'Clicks the 'btnWijzig' button.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.btnWijzig.ClickButton
End Sub
In my testcase i need to open a pop up and add some tekst. But the pop-up is not accesable with TC 8.7.
The error given is: Unexpected window
Sys.Process("Norma").WinFormsObject("WijzigOpmerking")Sys.Process("Norma").WinFormsObject("WijzigOpmerking")
In my tested apps Norma (the name of the software program) is installed right. (runmode: Simple)
All .NET Extentions are puged in.
It looks like TC doesn't see the pop up is from Norma.
See script below. Bold is my comment.
Sub WRL_T_004_Slecteer_bovenste_patient()
'Clicks the 'WindowsForms10Window8app0215472d' grid cell at row 0, column 'Opmerking' at point (72, 9).
Call (This opens the pop-up) Aliases.Norma.wndWindowsForms10Window8app0215472d1.WindowsForms10Window8app0215472d.WindowsForms10Window8app0215472d.SplitContainerControl1.Panel2.WindowsForms10Window8app0215472d.WindowsForms10Window8app0215472d.ClickCellXY(0, "Opmerking", 72, 9)
'Clicks at point (364, 13) of the 'LayoutControl1' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.Click(364, 13)
'Clicks at point (362, 30) of the 'LayoutControl1' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.Click(362, 30)
'Clicks at point (368, 56) of the 'TextBoxMaskBox' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.MemoOpmerking.TextBoxMaskBox.Click(368, 56)
'Enters ' pop' in the 'TextBoxMaskBox' object.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.MemoOpmerking.TextBoxMaskBox.Keys(" pop")
'Clicks the 'btnWijzig' button.
Call Aliases.Norma.wndWindowsForms10Window8app0215472d1.LayoutControl1.btnWijzig.ClickButton
End Sub