public void ClickButtonInWindow(int sessionId, string windowTitle, string button) { using (var context = new InSessionServiceContext(sessionId)) { context.Service.ClickButtonInWindow(windowTitle, button); } }
public bool WindowWithTitleExists(int sessionId, string windowTitle) { using (var context = new InSessionServiceContext(sessionId)) { return context.Service.WindowWithTitleExists(windowTitle); } }