Skip to content

Commit

Permalink
Modify comment describing removing instance
Browse files Browse the repository at this point in the history
  • Loading branch information
pdenert committed Jan 22, 2025
1 parent 22d48fa commit 0994c5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class AutomatorServer(private val automation: Automator) : NativeAutomatorServer

override fun tap(request: TapRequest) {
if (request.selector != null) {
/// Remove instance before creating bySelector
// Remove instance before creating bySelector, as it's not supported
var selector2 = request.selector.copy(instance = null)
val bySelector = selector2.toBySelector()

Expand All @@ -179,7 +179,7 @@ class AutomatorServer(private val automation: Automator) : NativeAutomatorServer
timeout = request.timeoutMillis
)
} else if (request.androidSelector != null) {
/// Remove instance before creating bySelector
// Remove instance before creating bySelector, as it's not supported
var androidSelector2 = request.androidSelector.copy(instance = null)
val bySelector = androidSelector2.toBySelector()

Expand Down

0 comments on commit 0994c5b

Please sign in to comment.