Skip to content

Commit

Permalink
Release 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jan 3, 2021
1 parent b0cd235 commit e55b2b6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Read `release_notes.md` for commit level details.

## [Unreleased]

### Enhancements

### Bug fixes

### Deprecations

## [4.2.0] - 2021-01-02

### Enhancements
- Add `Element#screenshot`, `Element#screenshot_as` and `Element#save_screenshot` in Element module
- `Element#screenshot_as` and `Element#save_screenshot` are same as `Driver#element_screenshot_as` and `Driver#save_element_screenshot`
Expand Down
4 changes: 2 additions & 2 deletions lib/appium_lib_core/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

module Appium
module Core
VERSION = '4.1.1' unless defined? ::Appium::Core::VERSION
DATE = '2020-12-25' unless defined? ::Appium::Core::DATE
VERSION = '4.2.0' unless defined? ::Appium::Core::VERSION
DATE = '2021-01-02' unless defined? ::Appium::Core::DATE
end
end
3 changes: 3 additions & 0 deletions test/functional/ios/driver_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def uicatalog
def setup
@@core = ::Appium::Core.for(Caps.ios)
@@driver = @@core.start_driver

require 'pry'
binding.pry
end

def teardown
Expand Down
3 changes: 3 additions & 0 deletions test/functional/mac2/driver_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class DriverTest < AppiumLibCoreTest::Function::TestCase
def setup
@core = ::Appium::Core.for(Caps.mac2)
@driver = @core.start_driver

require 'pry'
binding.pry
end

def teardown
Expand Down
21 changes: 8 additions & 13 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def ios(platform_name = :ios)
caps: { # :desiredCapabilities is also available
platformName: platform_name,
automationName: ENV['AUTOMATION_NAME_IOS'] || 'XCUITest',
# udid: 'auto',
udid: '00008020-000E5CDA0A23002E',
platformVersion: platform_version,
deviceName: device_name(platform_version, platform_name, wda_port),
useNewWDA: false,
Expand All @@ -133,6 +133,9 @@ def ios(platform_name = :ios)
someCapability: 'some_capability',
newCommandTimeout: 120,
wdaLocalPort: wda_port,
browserName: 'safari',
# nativeWebTap: true,
webDriverAgent: 'http://192.168.4.24:8100',
# `true`, which is the default value, is faster to finishing launching part in many cases
# But sometimes `false` is necessary. It leads regressions sometimes though.
waitForQuiescence: true,
Expand All @@ -149,17 +152,6 @@ def ios(platform_name = :ios)
}
}

if ENV['BUNDLE_ID'].nil?
cap[:caps][:app] = if cap[:caps][:platformName].downcase == :tvos
# Use https://github.com/KazuCocoa/tv-example as a temporary
"#{Dir.pwd}/test/functional/app/tv-example.zip"
else
test_app platform_version
end
else
cap[:caps][:bundleId] = ENV['BUNDLE_ID'] || 'io.appium.apple-samplecode.UICatalog'
end

unless ENV['UNIT_TEST']
xcode_org_id = ENV['ORG_ID'] || 'Simulator'
cap = add_ios_real_device(cap.dup, xcode_org_id) if real_device
Expand Down Expand Up @@ -366,7 +358,10 @@ def mac2
{
caps: {
platformName: :mac,
automationName: :mac2
automationName: :mac2,
# "bundleId" => "com.apple.Finder",
# webDriverAgentMacUrl: 'http://localhost:10100',
# systemPort: 10100
}
}
end
Expand Down

0 comments on commit e55b2b6

Please sign in to comment.