hi,
I am working in VB.NET in .NET Framework 1.1.
i am working with a web site. When i click a button in that site it shows one message box. That message box contains Ok and cancel buttons. I want to click that ok button.
In that web page, the page owner written as
<img id="remove64" class="detailButton" onmouseover="hoverMany(this.id, 'actionTabDelete');" onmouseout="buttonMany(this.id, 'actionTabDelete');" onclick="if(window.confirm(constants.formatMessage (constants.MSG_TABCARD_002, new Array('Ownership Resources'))) && (onDelete.validate(22801, 64))) {setMenuBarCursor('wait'); storeScrollPosition(); doSubmitDetail('64','doRemoveConnection');;}" src="../appearance/images/actionTabDelete.gif" alt="Delete Ownership Resources" width="32" height="16" border="0" />
I tried with activewindow but after clicking any one button in that message box only, the control will come to the next line.
How can i get the control of message box and click that button?
Plz help me with some code
My code is
strvar1 = element1.getAttribute("alt")
If strvar1.StartsWith("Delete Ownership Resources") Then
MsgBox(element1.outerHTML)
element1.click()
SendKeys.Send("{ENTER}").
end if
In this code after element1.click() the control will not come to next line until the any one button in that message box is clicked.
Thanks in advance...