private bool Navigate(string action) { var ticks = Guid.NewGuid().ToString(); ClientPort.Write("{0}.WatiNGoBackCheck='{1}';", ClientPort.DocumentVariableName, ticks); ClientPort.Write("{0}.{1}();", BrowserVariableName, action); ClientPort.InitializeDocument(); return(ClientPort.WriteAndReadAsBool("{0}.WatiNGoBackCheck!='{1}';", ClientPort.DocumentVariableName, ticks)); }
public void Initialize() { // In case of a redirect this call makes sure the doc variable is pointing to the "active" page. ClientPort.InitializeDocument(); }