Windows.findElement(By.id(“username”)).sendKeys(“abcd”)
Elapsed time: 13.112s
Test Cases/HappyPathScenarioTripLifeCycle_3483 FAILED.
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords.findElement() is applicable for argument types: (org.openqa.selenium.By$ById) values: [By.id: username]
Possible solutions: findElement(com.kms.katalon.core.testobject.WindowsTestObject), findElement(com.kms.katalon.core.testobject.WindowsTestObject, com.kms.katalon.core.model.FailureHandling), findElements(com.kms.katalon.core.testobject.WindowsTestObject), findElements(com.kms.katalon.core.testobject.WindowsTestObject, com.kms.katalon.core.model.FailureHandling)
at HappyPathScenarioTripLifeCycle_3483.run(HappyPathScenarioTripLifeCycle_3483:35)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1573675555433.run(TempTestCase1573675555433.groovy:23)
I use inspect.exe to identify the object…
| How found: | Mouse move (885,255) |
|---|---|
| hwnd=0x0000000000041686 32bit class=“Internet Explorer_Server” style=0x56000000 ex=0x0 | |
| Name: | “Username or email” |
| ControlType: | UIA_EditControlTypeId (0xC354) |
| LocalizedControlType: | “edit” |
| BoundingRectangle: | {l:841 t:219 r:1438 b:275} |
| IsEnabled: | true |
| IsOffscreen: | false |
| IsKeyboardFocusable: | true |
| HasKeyboardFocus: | true |
| AccessKey: | “” |
| ProcessId: | 11080 |
| RuntimeId: | [2A.41686.4.2] |
| AutomationId: | “username” |
| FrameworkId: | “InternetExplorer” |
| ProviderDescription: | “[pid:11080,providerId:0x0 Main(parent link):Microsoft: MSAA Proxy (unmanaged:uiautomationcore.dll)]” |
| AriaProperties: | “” |
| LiveSettingProperty: | Off (0) |
| IsPassword: | false |
| IsRequiredForForm: | false |
| IsDataValidForForm: | true |
| HelpText: | “” |
| Orientation: | 0 |
| IsDialog: | false |
| LegacyIAccessible.ChildId: | 0 |
| LegacyIAccessible.Description: | “” |
| LegacyIAccessible.Help: | “” |
| LegacyIAccessible.KeyboardShortcut: | “” |
| LegacyIAccessible.Name: | “Username or email” |
| LegacyIAccessible.Role: | editable text (0x2A) |
| LegacyIAccessible.State: | focused,focusable (0x100004) |
| LegacyIAccessible.Value: | “” |
| Value.IsReadOnly: | false |
| Value.Value: | “” |
| IsAnnotationPatternAvailable: | false |
| IsDragPatternAvailable: | false |
| IsDockPatternAvailable: | false |
| IsDropTargetPatternAvailable: | false |
| IsExpandCollapsePatternAvailable: | false |
| IsGridItemPatternAvailable: | false |
| IsGridPatternAvailable: | false |
| IsInvokePatternAvailable: | false |
| IsItemContainerPatternAvailable: | false |
| IsLegacyIAccessiblePatternAvailable: | true |
| IsMultipleViewPatternAvailable: | false |
| IsObjectModelPatternAvailable: | false |
| IsRangeValuePatternAvailable: | false |
| IsScrollItemPatternAvailable: | true |
| IsScrollPatternAvailable: | false |
| IsSelectionItemPatternAvailable: | false |
| IsSelectionPatternAvailable: | false |
| IsSpreadsheetItemPatternAvailable: | false |
| IsSpreadsheetPatternAvailable: | false |
| IsStylesPatternAvailable: | false |
| IsSynchronizedInputPatternAvailable: | false |
| IsTableItemPatternAvailable: | false |
| IsTablePatternAvailable: | false |
| IsTextChildPatternAvailable: | true |
| IsTextEditPatternAvailable: | true |
| IsTextPatternAvailable: | true |
| IsTextPattern2Available: | false |
| IsTogglePatternAvailable: | false |
| IsTransformPatternAvailable: | false |
| IsTransform2PatternAvailable: | false |
| IsValuePatternAvailable: | true |
| IsVirtualizedItemPatternAvailable: | false |
| IsWindowPatternAvailable: | false |
| IsCustomNavigationPatternAvailable: | false |
| IsSelectionPattern2Available: | false |
| FirstChild: | [null] |
| LastChild: | [null] |
| Next: | “Password” text |
| Previous: | “Username or email” text |
| Other Props: | Object has no additional properties |
| Children: | Container has no children |
| Ancestors: | “Log in to WFS External Dev” pane |
| "https://kc-log.com/auth/realms//protocol/openid-connect/auth?response_type=code&redirect_uri=urn:ietf:wg:oauth | |
| “” pane | |
| “” pane | |
| “” pane | |
| " Login Page" window | |
| “Desktop 1” pane | |
| [ No Parent ] |