I am trying to click on a pushbutton Close on a dialog and Click () does n't work because the error is Close button doesn't exist. Also, tried DoClick since Click doesn't exists nothing works. Please help!
maybe the tag of close button is not correct, please check that
It never rains but it pours.
Welcome to visit: <font color="blue">www.lantianwei.com</font>
Thanks, tags are correct. any other way?
What about set a focus on that button and then send Enter?
you can use DialogBox1.Close() method,
Any ways you will have OK/Yes and Cancel/No buttons on the dialog box. By clicking them the dialog box disappears.
Try and fail, but don't fail to try
Thanks, Setfocus did not work , I tried DialogBox("#1").Close () does not work either. Actually, this behavior is in Internet Explorer 7.0, works fine in 6.0