Hi,
Please let me know how to get the current loaded browser name asap
Regards
Kumar
WebDocument webDocument = "Path/To/the/browser/DOM"; string browserName = webDocument.BrowserName;
IList<Ranorex.Form> AllForms = Host.Local.FindChildren<Ranorex.Form>();
foreach (Ranorex.Form ThisForm in AllForms )
{
//here search for the property of the web document to determine if it is the one you want.
//If so break out of the loop and use the ThisForm object as your form.
}
kumarm100 wrote:Is there any other way to identify the browser name without declaring the path in webdocument.
WebElement webElement;
WebDocument doc = webElement.FindSingle<WebDocument>("ancestor-or-self::dom");
string browserName = doc.BrowserName;Users browsing this forum: No registered users and 0 guests