TestProject Forum

Take element coordinates attribute

Hi all
help a newbie please

1.create a step to retrieve element attributes (action Get Attribute Value)
2.create an output parameter
3.step fail
what did I forget or did wrong?
thanks

Hello @zeleznov.sergey
Please check that you are using the Latest Version of the addon:

1 Like

thanks
Updated addon Mobile Extensions


The step fails anyway

What is the failure message?

java.util.concurrent.ExecutionException: org.openqa.selenium.UnsupportedCommandException: ‘coordinates’ attribute is unknown for the element. Only the following attributes are supported: [checkable, checked, {class,className}, clickable, {content-desc,contentDescription}, enabled, focusable, focused, {long-clickable,longClickable}, package, password, {resource-id,resourceId}, scrollable, selection-start, selection-end, selected, {text,name}, bounds, displayed, contentSize]
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘1113-ПК’, ip: ‘127.0.0.1’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘13.0.1’
Driver info: io.testproject.java.sdk.v2.drivers.AndroidDriver
Capabilities {adbPort: 5037.0, appActivity: crc640714f6de2f1211cd.Splas…, appPackage: com.magnetto.customer.gs, appWaitForLaunch: false, automationName: UIAutomator2, browserName: , chromeOptions: {w3c=true}, databaseEnabled: false, desired: {browserName=, platformName…, deviceApiLevel: 23.0, deviceManufacturer: Xiaomi, deviceModel: Redmi Note 3, deviceName: xiaomi-redmi_note_3-9f9d95c1, deviceScreenDensity: 480.0, deviceScreenSize: 1080x1920, deviceUDID: 9f9d95c1, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 0.0, noReset: true, noSign: true, pixelRatio: 3.0, platform: LINUX, platformName: ANDROID, platformVersion: 6.0.1, skipDeviceInitialization: true, skipServerInstallation: true, skipServerLaunch: true, skipUnlock: true, skipWaitAppStart: true, statBarHeight: 72.0, systemPort: 64589.0, takesScreenshot: true, udid: 9f9d95c1, viewportRect: {left=0.0, top=72.0, width=…, warnings: {}, webStorageEnabled: false}
Session ID: 150037ce-a7f8-4eef-90f9-ddf4bca56979
Caused by org.openqa.selenium.UnsupportedCommandException: ‘coordinates’ attribute is unknown for the element. Only the following attributes are supported: [checkable, checked, {class,className}, clickable, {content-desc,contentDescription}, enabled, focusable, focused, {long-clickable,longClickable}, package, password, {resource-id,resourceId}, scrollable, selection-start, selection-end, selected, {text,name}, bounds, displayed, contentSize]
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘1113-ПК’, ip: ‘127.0.0.1’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘13.0.1’
Driver info: io.testproject.java.sdk.v2.drivers.AndroidDriver
Capabilities {adbPort: 5037.0, appActivity: crc640714f6de2f1211cd.Splas…, appPackage: com.magnetto.customer.gs, appWaitForLaunch: false, automationName: UIAutomator2, browserName: , chromeOptions: {w3c=true}, databaseEnabled: false, desired: {browserName=, platformName…, deviceApiLevel: 23.0, deviceManufacturer: Xiaomi, deviceModel: Redmi Note 3, deviceName: xiaomi-redmi_note_3-9f9d95c1, deviceScreenDensity: 480.0, deviceScreenSize: 1080x1920, deviceUDID: 9f9d95c1, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 0.0, noReset: true, noSign: true, pixelRatio: 3.0, platform: LINUX, platformName: ANDROID, platformVersion: 6.0.1, skipDeviceInitialization: true, skipServerInstallation: true, skipServerLaunch: true, skipUnlock: true, skipWaitAppStart: true, statBarHeight: 72.0, systemPort: 64589.0, takesScreenshot: true, udid: 9f9d95c1, viewportRect: {left=0.0, top=72.0, width=…, warnings: {}, webStorageEnabled: false}
Session ID: 150037ce-a7f8-4eef-90f9-ddf4bca56979 at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)

That happens because coordinates is not an attribute, you can use this action instead:
image

1 Like