/// <summary> /// select Online Test Help /// </summary> /// <returns>SchoolnetOnlineHelpPage</returns> public SchoolnetOnlineHelpPage SelectOnlineTestHelp() { OnlineTestHelpButton.Wait(3).Click(); //pause the script for a second to let the pop-up display System.Threading.Thread.Sleep(1000); /* * https://team-automation-st.sndev.net/onlinetest/tutorial.html */ string windowName = "SchoolNetHelp"; DriverCommands.WaitToSwitchWindow(windowName, 30); return(new SchoolnetOnlineHelpPage(windowName)); }
/// <summary> /// select Online Test Help /// </summary> /// <returns>SchoolnetOnlineHelpPage</returns> public SchoolnetOnlineHelpPage SelectOnlineTestHelp() { OnlineTestHelpButton.Wait(3).Click(); //pause the script for a second to let the pop-up display System.Threading.Thread.Sleep(1000); /* * https://team-automation-st.sndev.net/OnlineTest/onlinetest.js * function openTutorial() calls openHelpWindow() * https://team-automation-st.sndev.net/OnlineTest/onlinetest.SNInclude.js * var openHelpWindow = my.openHelpWindow = function * var title = 'SchoolNetHelp' * snHelpTopicWindow = window.open(url, title, */ string windowName = "SchoolNetHelp"; DriverCommands.WaitToSwitchWindow(windowName, 30); return(new SchoolnetOnlineHelpPage(windowName)); }