Skip to content

Commit 2599a46

Browse files
Fix set_location Android test on emulator
1 parent 8162e27 commit 2599a46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android_tests/lib/android/specs/driver.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ def validate_path(path)
182182
rescue Selenium::WebDriver::Error::UnknownError => e
183183
# on android this method is expected to fail with this message when running
184184
# on a regular device, or on genymotion.
185-
raise unless e.message.start_with?('ERROR running Appium command: port should be > 0 and < 65536')
185+
# error could be many messages, including:
186+
# ERROR running Appium command: port should be a number or string
187+
# ERROR running Appium command: port should be > 0 and < 65536
188+
raise unless e.message.include?('ERROR running Appium command: port should be')
186189
end
187190
end
188191

0 commit comments

Comments
 (0)