我想知道如何等到browser.document.InvokeScript(DoAll);回报。一旦它返回我需要启动一个不同的功能,但只有一旦它完成。我怎么等到javascript函数完成后再启动另一个?
public void DoAll() {
// check for window type
MainInst.BrowserForAutomation.Document.InvokeScript(JSFuncNames.CheckWindow);
//Wait Until the command above has finished, before loading the command after this
// do a check to make sure the ticket is editable
// do a check to assign the ticket to the specified person
}