/// <summary> /// 把browser当前document里locator所指向的元素设置成focus状态 /// </summary> /// <param name="browser"></param> /// <param name="locator"></param> public static Boolean OperateBrowserSetFocus(GeckoWebBrowser browser, DomElementLocator locator) { return (Boolean)browser.Invoke(new GeckoOperationOne<Boolean>(GeckoFocus), browser, locator); }
/// <summary> /// 把browser当前document里locator所指向的元素触发MouseOver的事件 /// </summary> /// <param name="browser"></param> /// <param name="locator"></param> public static void OperateBrowserMouseOver(GeckoWebBrowser browser, DomElementLocator locator) { }
/// <summary> /// 对browser当前document里locator所指向的元素填入数据inputValue /// </summary> /// <param name="browser"></param> /// <param name="locator"></param> /// <param name="inputValue"></param> public static Boolean OperateBrowserInput(GeckoWebBrowser browser, DomElementLocator locator, String inputValue) { return (Boolean)browser.Invoke(new GeckoOperationTwo<Boolean>(GeckoInput), browser, locator, inputValue); }