WebDriver driver = new FirefoxDriver();
Saturday, February 22, 2014
Thursday, January 30, 2014
How to handle Dialog box in Mozilla
If Browser("Browser").DialogExists Then ----> to check whether dialog exist in Mozilla
Browser("Browser").GetDialogText -----> to get the text from Mozilla
Browser("Browser").HandleDialog micOK --->To click the ok button
Browser("Browser").HandleDialog micCancel -----> to click the cancel button
End If
Browser("Browser").GetDialogText -----> to get the text from Mozilla
Browser("Browser").HandleDialog micOK --->To click the ok button
Browser("Browser").HandleDialog micCancel -----> to click the cancel button
End If
Subscribe to:
Posts (Atom)