Skip to main content

SeeTestAutomation- SetProperty

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

SetProperty (Property, Value)

Description

This command can change the configuration on the device during runtime. It will set the given property to the given value.

Parameters

  • Property :  Property (See the supported properties below)
  • Value : The value to be set

Supported Properties:

PropertyValueFunctionNotes
hybridClicktrue/false (default: false)Enables JavaScript-based click method.
report.image.widthSize in pixels (default: 500)Sets the size of generated images in reports.
screen.latencyMillisecondsDelays post-action screenshot to account for physical device latency.
screen.quality1–100 (percent)Sets the image quality for screenshots from the device.
screen.refresh> 0 millisecondsSets refresh rate for capturing updated device images.
ignore.ocr.recommendationtrue/falseEnables/disables OCR recognition.
Android.instrumentation.securitynone, smart, hard (default: smart)Controls disabling of Android FLAG_SECURE.Android only
on.device.xpathtrue/falseExecutes XPath queries on device for faster response.Certain tags not supported on device.
assert.element.idletrue/false (default: false)Controls command behavior for elements in busy state.Android only. Can also be app-property.
element.visibility.levelfull/center/none/legacy_mode (default: legacy_mode)Controls visibility constraints during element validation.Replaces elementSwipe.partialAppearance
chrome.load.timeoutinteger >= 0 (ms); default: 10000 (local), 15000 (cloud)Timeout for Chrome operations.Android only
adbPortForwardport number / -1Specifies ADB port for device connection.Android only
Android.native.nonInstrumentedtrue/falseEnables switching between instrumented/non-instrumented Android modes.Android only
ios.native.nonInstrumentedtrue/falseEnables non-instrumented dumps for native apps.iOS only
iosDevice.nonInstrumentedenable/disable (default: enable)Toggles instrumented/non-instrumented modes for iOS devices.iOS only
ios.elementsendtext.action.firetrue/false (default: false)Triggers keyboard events on ElementSendText command.iOS only
ios.atomic.sendTexttrue/falseSends text atomically (key-by-key).iOS only
ios.non-instrumented.dump.escape.attributestrue/false (default: false)Escapes certain properties from non-instrumented dump.iOS only; also an app-property
ios.non-instrumented.dump.parameters[refer to error logs]Limits number of elements in non-instrumented dump.iOS only
xcelement.type.includetrue/false (default: false)Reverts to older class behavior in dump (pre-v10.3).iOS only
js.max.string.sizeinteger > 0 (default: 255)Sets max text length for object properties.
clicks.time.gapinteger > 0 (default: 0)Milliseconds between rapid multiple clicks.Android and iOS
Android.instrumentation.cameratrue/false or enable/disable (default: false)Supports instrumentation for apps using the camera.Android only; also an app-property
ios.auto.accept.alertstrue/falseAutomatically accepts system alerts.iOS only
ios.auto.dismiss.alertstrue/falseAutomatically dismisses system alerts.iOS 9+ only
android.install.grant.permissionstrue/false (default: false)Grants app permissions during installation.Android only
attach.crash.log.to.reporttrue/falseAttaches device crash logs to the report folder.iOS only
ios.dump.focus.processprocess_name/bundle_id/process_idGets dump from a specific process.iOS only
ios.dump.non.instrumented.dump.include.attributesattribute name (e.g. visible)Includes specific attributes in dump.iOS only
battery.report.percentagetrue/falseChanges battery monitoring unit from mAh to percentage.Android only
ios.keyboard.close.by.dumptrue/falseSimulates user action to close keyboard.iOS only
location.service.gps / location.service.networktrue/falseToggles GPS/location service modes.Android only
ios.element-send-text.use.xcautomationtrue/false (default: true)Uses XCAutomation for text entry.iOS only
ios.dump.fetch.toptrue/false (default: false)Gets "top" property from OS (expensive operation).iOS only
disable.reportertrueSaves test results locally during grid tests.
ios.instrumentation.log.levelnone, fatal, error, warn, info, debug, allSets iOS instrumentation log level.iOS only
safari.webview.includetrue/false (default: false)Includes Safari WebView UI elements in dump.iOS only
ios.element.top.bounds.contained.in.parenttrue/false (default: false)Controls visibility check for parent-bound elements.iOS only
ios.waiting.element.polling.intervalInteger >= 0 (default: 0)Polling interval for element stability check.iOS only
ios.11.use.old.monitoring.servicetrue/false (default: false)Uses old CPU/memory monitoring for iOS 11.iOS only
ios.request.location.permissiontrue/false (default: false)Requests location permission (required for getLocation).iOS 11+ only
controller.idle.timeoutInteger >= 10000 (default: 10000)Time for controller to stay alive after test ends.