15 years ago
Test Complete not able to recognize buttons on Overlay page in Firefox
Hi,
I want to click on Save & confirm button which lies on Overlay page.
I am using firefox..
Even with DOM ,Test complete some times recognize these buttons & sometimes it doesnt
Following code is used for clikcing Save button
Set window = Browser.Page(Commons.getEnvUrl & "*")
set window=Browser.Page(Commons.getEnvUrl & "onlineadvice/dashboard.act?*")
set overlay_window = window.NativeWebObject.Find("id","Form(""frmEdAcct"")")
Call overlay_window.Drag(765, 111, -12, 436)
set save_butt=window.NativeWebObject.Find("name", "Image(""okstdbr"")")
BuiltIn.delay(2000)
save_butt.click
Following code is used for clikcing on Confirm button
set w1=Browser.page(Commons.getEnvUrl & "onlineadvice/dashboard.act?*")
set Confirm_object = w1.Panel("dialogbox_c").Panel("dialogbox").Panel(1).Panel(0).Frame(0).Panel("page").Form("frmEdPos").Table(1).Cell(0, 0).Link(0).Image("confirmstdbr")
Confirm_object.click(31, 17)
-It is able to recognize object sometime & clicks on it also but it is not consistent
Same code is working with IE .Please suggest!!
I want to click on Save & confirm button which lies on Overlay page.
I am using firefox..
Even with DOM ,Test complete some times recognize these buttons & sometimes it doesnt
Following code is used for clikcing Save button
Set window = Browser.Page(Commons.getEnvUrl & "*")
set window=Browser.Page(Commons.getEnvUrl & "onlineadvice/dashboard.act?*")
set overlay_window = window.NativeWebObject.Find("id","Form(""frmEdAcct"")")
Call overlay_window.Drag(765, 111, -12, 436)
set save_butt=window.NativeWebObject.Find("name", "Image(""okstdbr"")")
BuiltIn.delay(2000)
save_butt.click
Following code is used for clikcing on Confirm button
set w1=Browser.page(Commons.getEnvUrl & "onlineadvice/dashboard.act?*")
set Confirm_object = w1.Panel("dialogbox_c").Panel("dialogbox").Panel(1).Panel(0).Frame(0).Panel("page").Form("frmEdPos").Table(1).Cell(0, 0).Link(0).Image("confirmstdbr")
Confirm_object.click(31, 17)
-It is able to recognize object sometime & clicks on it also but it is not consistent
Same code is working with IE .Please suggest!!