Log In issues with silentmode
Written by: webDOMinator 1 year and 6 months ago
The default browser setting in webDOM keeps silentmode ON so that javascript errors on sites do not halt automation processes. This default setting is great, but sometimes it has a cost.
Because internet explorer does not differentiate between a javascript error popup and a Security Certificate Error popup nor "Redirecting to an Unsecure Page" popups, it causes a problem by ignoring all the types of popups rather than being able to control which type of popup is allowed and which is not.
The most common silentmode popup problems are of the third typeQuick Reference for "type"
Click on command to see examples & comments
DOM Level Commands
Usage: type:string
Description: Uses the actual keyboard input to type the text specified by string. Notice, this will make it so that webDOM has to be maximized when in use. It is advised not to use this command unless you are not using your computer at the same time webDOM is running.: Redirecting to an unsecure page. This issue usually arises during automatic log in where a website uses a secure log in page, but then forwards to unsecure pages where there is no important information. The error happens when the browser needs user confirmation that the user wants to continue to an unsecure page. Since the user cannot access the window to click "Yes", the browser does not do anything. This usually manifests itself in a scenario such as: You click the login button manually on the login page and it does nothing. That scenario is a tell-tale sign that there's an SSL to non-SSL redirecting going on.
The easiest way to continue automation without being stopped by a certificate popup or redirect confirmation popup, is using silentmode and killalert commands to temporarily turn popups on, login, click Yes on the popup and then turn silentmode back on as to avoid any Javascript Error popups.
An example of this in minion code would be:
Code
silentmodeQuick Reference for "silentmode"
Click on command to see examples & comments
Browser Level Commands
Usage: silentmode:setting
Description: Turns the browser to silent if setting is set to true, 1, on or yes (respectively, false, 0, off or no will un-silence the browser). The silent setting allows the browser to ignore system popups like certification error windows, script error windows, even authentication windows. webDOM is set by default to silendmode:on.:off
loginQuick Reference for "login"
Click on command to see examples & comments
Program Level Commands
Usage: login
Description: Perform the login action on the currently loaded site plugin. A site plugin must be loaded, with a username and password entered for this to work.
silentmodeQuick Reference for "silentmode"
Click on command to see examples & comments
Browser Level Commands
Usage: silentmode:setting
Description: Turns the browser to silent if setting is set to true, 1, on or yes (respectively, false, 0, off or no will un-silence the browser). The silent setting allows the browser to ignore system popups like certification error windows, script error windows, even authentication windows. webDOM is set by default to silendmode:on.:on
The login script would have to contain the killalert command for the specific type of popup that happens in your case. For instance, if a certificate error happened and you needed to click "Yes" in the popup window after the login button click, you could have the following login script:
Code
killalertQuick Reference for "killalert"
Click on command to see examples & comments
Browser Level Commands
Usage: killalert[:window-title-search:button-search]
Description: Put this command on a line before the command you're using that will popup a javascript alert or confirm box, and it will kill the popup within 2 seconds. To use a standardized killalert just call this by itself. If you need to click a certain button in a certain window, use the window-title-search to match up the first part of the text of the window, and then a button-search to match the text of the button you want to click.:Security Certificate:Yes
clickQuick Reference for "click"
Click on command to see examples & comments
DOM Level Commands
Usage: click:element
Description: Clicks a DOM element specified by element.:dom.input.Log in
Of course, this script would be placed in the login tab of the script editor and woul