Yes but the login data i can´t share because of sensitive data. That is script with the made changes:
'Opens the specified browser'
WebUI.openBrowser('')
'Maximizes the browser window'
WebUI.maximizeWindow()
'Opens the C4C of the System, which is specified in the Profile'
WebUI.navigateToUrl(GlobalVariable.C4C_URL)
'Sets the Username of the user, which is specified in the Profile'
WebUI.setText(findTestObject('C4C/page_Login/input_Username'), GlobalVariable.C4C_userName)
'Sets the password of the user, which is specified in the Profile'
WebUI.setText(findTestObject('C4C/page_Login/input_Password'), GlobalVariable.C4C_password)
'Clicks on the language menu'
WebUI.click(findTestObject('C4C/page_Login/label_Deutsch'))
'Selects English as language'
WebUI.click(findTestObject('C4C/page_Login/li_English'))
'Clicks on the Log On button'
WebUI.click(findTestObject('C4C/page_Login/span_LogOn'))
'Delay of 20 seconds, for loading the C4C'
WebUI.delay(20)
'Checks if the user is logged in multiple times'
def isVisible = WebUI.verifyElementVisible(findTestObject('C4C/page_Login/span_Yes'), 10, FailureHandling.OPTIONAL)
'If the user is logged in multiple times execute the following steps'
if (isVisible) {
'Clicks on Yes for unlock the user'
WebUI.click(findTestObject('C4C/page_Login/span_Yes'), FailureHandling.OPTIONAL)
'Delay of 10 seconds, for loading the C4C'
WebUI.delay(10)
}
'Checks if the user is logged in multiple times'
def isVisible1 = WebUI.verifyElementVisible(findTestObject('C4C/page_Login/span_Yes'), 10, FailureHandling.OPTIONAL)
'If the user is logged in multiple times execute the following steps'
if (isVisible1) {
'Clicks on Yes for unlock the user'
WebUI.click(findTestObject('C4C/page_Login/span_Yes'), FailureHandling.OPTIONAL)
'Delay of 10 seconds, for loading the C4C'
WebUI.delay(10)
}