Troubleshoot Synthetic Scenario
Selenium script blocked due to windows security?
Problem
If your Germain RPA Bot script (powered by Selenium) fails to run due to some Windows Security constraints, i.e. you are getting the “Windows Security” dialog box while running via web driver MS Edge Webdriver, here is a solution for you.
Solution
Server updated with below 2 regex entries.
Registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
.Create a DWORD value with the name
RemoteDesktop_SuppressWhenMinimized
and set its value to2
.Registry key
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client
, Create a DWORD value with the nameRemoteDesktop_SuppressWhenMinimized
and set its value to2.
Germain Engine started in Foreground with an active RDP Session to Windows server from SAW Machine.
Catch a failure
Problem
Trying to capture an Exception/failure in a Synthetic scenario using Mvel won’t work (it is not supported):
try {
wait.until(ExpectedConditions.elementToBeClickable(By.partialLinkText("Find Customer")));
wait.until(ExpectedConditions.not(ExpectedConditions.presenceOfAllElementsLocatedBy(By.className("siebui-busy"))));
log.info("**************************************************try****************");
} (Exception ex){
log.info("**************************************************catch****************");
}
Solution
In more recent version of Germain, you can create these selenium scripts in Javascript (instead of Mvel):
Full script
Explanation