com.kinective.mts.testscripts.adminPortal.adminPortal
VerifyInstitutionFieldsValidationsErrorMessages
({Description=Login as a Admin user and trying to pass invalid parameters in the Add Institution fields and verify the errors, UserName=Fiadmin@ctusbank.onmicrosoft.com, Tenant Name=, Application ID=, Tenant FQDN=, Connector Name=, TestID=VerifyInstitutionFieldsValidationsErrorMessages, Tenant ID=, DefaultAdmin=, Group Name=, Select Group Role=, Group ID=, Password=iMM2023!})
org.openqa.selenium.NoSuchElementException: Timed out after 5 seconds. Unable to locate the element
at org.openqa.selenium.support.pagefactory.AjaxElementLocator.findElement(AjaxElementLocator.java:90)
at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
at jdk.proxy2/jdk.proxy2.$Proxy19.isDisplayed(Unknown Source)
at com.kinective.mts.testscripts.adminPortal.adminPortal.VerifyInstitutionFieldsValidationsErrorMessages(adminPortal.java:1070)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"link text","selector":"Add"}
(Session info: chrome=143.0.7499.41)
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Build info: version: '4.10.0', revision: 'c14d967899'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '22'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [9d20da0e12314e74f64bbc21ea430375, findElement {using=link text, value=Add}]
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 143.0.7499.41, chrome: {chromedriverVersion: 143.0.7499.40 (c23ff452476d..., userDataDir: C:\Users\SA_ALT~1.SHA\AppDa...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:50296}, goog:loggingPrefs: {performance: ALL}, goog:processID: 10732, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: Windows 11, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://192.168.217.1:4444/ses..., se:cdpVersion: 143.0.7499.41, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Session ID: 9d20da0e12314e74f64bbc21ea430375
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:199)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:132)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:51)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:191)
at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:531)
at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)
at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:59)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:350)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344)
at com.epam.healenium.processor.FindElementProcessor.execute(FindElementProcessor.java:23)
at com.epam.healenium.processor.BaseProcessor.process(BaseProcessor.java:42)
at com.epam.healenium.handlers.proxy.BaseHandler.findElement(BaseHandler.java:63)
at com.epam.healenium.handlers.proxy.SelfHealingProxyInvocationHandler.invoke(SelfHealingProxyInvocationHandler.java:39)
at jdk.proxy2/jdk.proxy2.$Proxy15.findElement(Unknown Source)
at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:68)
at org.openqa.selenium.support.pagefactory.AjaxElementLocator.access$001(AjaxElementLocator.java:38)
at org.openqa.selenium.support.pagefactory.AjaxElementLocator$SlowLoadingElement.isLoaded(AjaxElementLocator.java:156)
at org.openqa.selenium.support.ui.SlowLoadableComponent.get(SlowLoadableComponent.java:71)
at org.openqa.selenium.support.pagefactory.AjaxElementLocator.findElement(AjaxElementLocator.java:86)
... 16 more
(Admin Portal Validations)
C:\Users\sa_altaf.shaikh\git\ECS_Repo\testxml\Smoke\Chrome_Admin_Method1.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite thread-count="500" name="IMM_QA_Automation" guice-stage="DEVELOPMENT" verbose="3">
<parameter name="webSite" value="https://qa.immecs.app/adm/#/institutions"/>
<parameter name="projectKey" value="MTS"/>
<parameter name="deviceHost" value="localhost"/>
<parameter name="sessionUrl" value="https://qa.immecs.app/adm/#/institutions"/>
<parameter name="devicePort" value="4444"/>
<parameter name="browserName" value="chrome_windows"/>
<listeners>
<listener class-name="com.kinective.mts.support.MethodInterceptor"/>
</listeners>
<test thread-count="1" parallel="methods" name="IMM_Test_Chrome" verbose="3">
<classes>
<class name="com.kinective.mts.testscripts.adminPortal.adminPortal">
<methods>
<include name="VerifyInstitutionFieldsValidationsErrorMessages"/>
</methods>
</class> <!-- com.kinective.mts.testscripts.adminPortal.adminPortal -->
</classes>
</test> <!-- IMM_Test_Chrome -->
</suite> <!-- IMM_QA_Automation -->
Tests for IMM_QA_Automation
- IMM_Test_Chrome (1 class)
Groups for IMM_QA_Automation
Times for IMM_QA_Automation
Total running time: 1 minutes
Reporter output for IMM_QA_Automation
VerifyInstitutionFieldsValidationsErrorMessages({Description=Login as a Admin user and trying to pass invalid parameters in the Add Institution fiel...)
Timed out after 5 seconds. Unable to locate the element [ScreenShot]
--- 09 Dec 19:20:22 677 - TestCaseID:: VerifyInstitutionFieldsValidationsErrorMessages
--- 09 Dec 19:20:29 378 - 6 - Driver::initialize::Get - com.kinective.mts.support.WebDriverFactory.get(WebDriverFactory.java:566)
Verify UI Elements for General settings page
Steps:
--- 09 Dec 19:20:41 650 - Page URL:: https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize?client_id=36574351-3de3-4d3f-9925-0aab0c9fbf11&scope=.default%20openid%20profile%20offline_access&redirect_uri=https%3a%2f%2fqa.immecs.app%2fadm%2fv1%2f&client-request-id=0ed8d984-b814-42f3-9450-cd9264aed84e&response_mode=fragment&response_type=code&x-client-sku=msal.js.browser&x-client-ver=2.32.1&client_info=1&code_challenge=zlu7lgl0rxvugnlu6pjkdi5zepcr4nt3r3qivvo6emk&code_challenge_method=s256&nonce=1cecee0a-dfb1-4dc5-8ddb-9c0491c7385e&state=eyjpzci6ijdmownjmgq5ltu0nwutndvlns05ngfjltu2ntk1zdc5ymeyzcisim1ldgeionsiaw50zxjhy3rpb25uexblijoicmvkaxjly3qifx0%3d&sso_reload=true
--- 09 Dec 19:20:41 650 - 7 - Page Load Wait: (Sync) - com.kinective.mts.support.Utils.waitForPageLoad(Utils.java:184)
--- 09 Dec 19:20:48 564 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: idSIButton9]
--- 09 Dec 19:20:48 979 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: i0116]
--- 09 Dec 19:20:54 245 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: i0116]
--- 09 Dec 19:20:54 610 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: idSIButton9]
--- 09 Dec 19:20:56 191 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: i0118]
--- 09 Dec 19:21:01 075 - Page URL:: https://login.microsoftonline.com/common/login
--- 09 Dec 19:21:01 075 - 3 - Page Load Wait: (Sync) - com.kinective.mts.support.Utils.waitForPageLoad(Utils.java:184)
--- 09 Dec 19:21:01 416 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: lightbox]
--- 09 Dec 19:21:01 481 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: idSIButton9]
--- 09 Dec 19:21:23 616 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //c-sidebar-nav-link-content[contains(text(),'Institutions')]]
--- 09 Dec 19:21:27 102 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: immBtnAdd]
--- 09 Dec 19:21:30 588 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //input[@placeholder='Directory (tenant) ID']]
--- 09 Dec 19:21:31 049 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //input[@placeholder='Name']]
--- 09 Dec 19:21:31 537 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //input[@placeholder='Tenant FQDN']]
--- 09 Dec 19:21:32 026 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //input[@placeholder='DefaultAdmin']]
--- 09 Dec 19:21:32 532 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> xpath: //*[@id='immBtnCancel']]
--- 09 Dec 19:21:35 987 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (9d20da0e12314e74f64bbc21ea430375)] -> id: immOptionInstEnabled-button]
Timed out after 5 seconds. Unable to locate the element [ScreenShot]
21 ignored methods
com.kinective.mts.testscripts.adminPortal.adminPortal
VerifyUpdateConnectorName
smoke_Test_Scripts
VerifyConnectorFieldsValidationsErrorMessages
VerifyAddGroupRole
VerifyOnboardingTenant
loginAs_SymitarAdmin
updating_Records
VerifyNonAdminUserTryingToAddDeleteUpdateGroupRole
loginAsJH_Institution_Admin
deleting_All_records
deleting_Records
VerifyUpdateGroupRole
VerifyAddConnector
VerifyGroupRoleFieldsValidationsErrorMessages
loginAsJH_Non_Admin_User
VerifyNonAdminUserTryingToAddDeleteUpdateConnector
VerifyNonAdminUserTryingToAddDeleteUpdateTenant
VerifyUpdateTenantDetails
field_Validations
loginAsJH_Admin_User
VerifyLoginAndLogoutProcess
smoke_Test_Scripts
VerifyConnectorFieldsValidationsErrorMessages
VerifyAddGroupRole
VerifyOnboardingTenant
loginAs_SymitarAdmin
updating_Records
VerifyNonAdminUserTryingToAddDeleteUpdateGroupRole
loginAsJH_Institution_Admin
deleting_All_records
deleting_Records
VerifyUpdateGroupRole
VerifyAddConnector
VerifyGroupRoleFieldsValidationsErrorMessages
loginAsJH_Non_Admin_User
VerifyNonAdminUserTryingToAddDeleteUpdateConnector
VerifyNonAdminUserTryingToAddDeleteUpdateTenant
VerifyUpdateTenantDetails
field_Validations
loginAsJH_Admin_User
VerifyLoginAndLogoutProcess
Methods in chronological order
com.kinective.mts.testscripts.adminPortal.adminPortal
initialize(org.testng.TestRunner@6283d8b8)
0 ms
init(org.testng.TestRunner@6283d8b8)
10073 ms
VerifyInstitutionFieldsValidationsErrorMessages({Description=Login as a Admin user and trying to pass invalid parameters in the Add Institution fiel...)
16992 ms