Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6e1a2a7
Update pytest-cov requirement from ~=2.6 to ~=2.8 (#489)
dependabot-preview[bot] Jan 26, 2020
53dc75f
Update autopep8 requirement from ~=1.4 to ~=1.5 (#490)
dependabot-preview[bot] Jan 26, 2020
3359a44
Update tox-travis requirement from ~=0.11 to ~=0.12 (#491)
dependabot-preview[bot] Jan 26, 2020
4d269f8
Update tox requirement from ~=3.6 to ~=3.14 (#494)
dependabot-preview[bot] Jan 27, 2020
b95776d
chore: Fix find_by_images_tests.py (#495)
ki4070ma Jan 30, 2020
f2bf259
feat: Add viewmatcher (#480)
ki4070ma Feb 9, 2020
864b045
Bump 0.50
KazuCocoa Feb 10, 2020
f14291b
Update changelog for 0.50
KazuCocoa Feb 10, 2020
446b8c4
Fix flaky functional tests (#473)
ki4070ma Feb 10, 2020
4641b45
feat: Add idempotency key header to create session requests (#514)
mykola-mokhnach Apr 11, 2020
34427a1
feat: Override send_keys without file upload function (#515)
KazuCocoa Apr 12, 2020
5a545d7
Bump 0.51
KazuCocoa Apr 12, 2020
2141dbd
Update changelog for 0.51
KazuCocoa Apr 12, 2020
9bdf1f7
test: Fix test_clear flaky functional test (#519)
iamnrupesh Apr 15, 2020
ba64adf
test: Add unit test for set_value (setImmediateValue) (#518)
iamnrupesh Apr 15, 2020
9e1959c
chore: Fix int - str comparison error in ios desired capabilities (#517)
Akulavenkatesh Apr 19, 2020
a2e21d1
fix: Handling of dictionary-values in WebElement.get_attribute() (#521)
hanneshauer Apr 23, 2020
c702cef
Bump 0.52
KazuCocoa Apr 23, 2020
cfd99cf
Update changelog for 0.52
KazuCocoa Apr 23, 2020
569342e
Merge branch 'master' into rebase-master
ki4070ma Apr 25, 2020
c8d1af3
Fix mypy error
ki4070ma Apr 26, 2020
91a26e8
tweak
ki4070ma Apr 26, 2020
e800ce7
Add wait to test
ki4070ma Apr 26, 2020
efd0655
Skip tap_twice test
ki4070ma Apr 26, 2020
c378859
review comments
ki4070ma Apr 26, 2020
56e8e0c
Remove unnecessary import
ki4070ma Apr 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Add idempotency key header to create session requests (#514)
  • Loading branch information
mykola-mokhnach authored Apr 11, 2020
commit 4641b45bebd8719c9d3ebd1e2e191b35fd2de5d3
5 changes: 5 additions & 0 deletions appium/webdriver/appium_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import uuid

from selenium.webdriver.remote.remote_connection import RemoteConnection

from appium.common.helper import library_version
Expand All @@ -24,5 +26,8 @@ def get_remote_connection_headers(cls, parsed_url, keep_alive=True):
"""Override get_remote_connection_headers in RemoteConnection"""
headers = RemoteConnection.get_remote_connection_headers(parsed_url, keep_alive=keep_alive)
headers['User-Agent'] = 'appium/python {} ({})'.format(library_version(), headers['User-Agent'])
if parsed_url.path.endswith('/session'):
# https://github.com/appium/appium-base-driver/pull/400
headers['X-Idempotency-Key'] = str(uuid.uuid4())

return headers