René's URL Explorer Experiment


Title: feat: allow to add a command dynamically by KazuCocoa · Pull Request #608 · appium/python-client · GitHub

Open Graph Title: feat: allow to add a command dynamically by KazuCocoa · Pull Request #608 · appium/python-client

X Title: feat: allow to add a command dynamically by KazuCocoa · Pull Request #608 · appium/python-client

Description: Appium 2.0 will allow custom drivers/plugins add their own endpoint. Then, we want to allow clients to add custom commands for them. In Ruby, I've added like https://github.com/appium/ruby_lib_core/blob/b9f015d7dea14964a0733f2385ebcff68da1e18e/test/unit/android/webdriver/w3c/commands_test.rb#L31-L98 as an experimental method. (The method was already used internally, so as Ruby client, it was just exposed the method as a public method.) In Python, I've added two methods. add_command and execute_custom_command. add_command adds the pair of HTTP method and a path in self.command_executor._commands. execute_custom_command calls a method from self.command_executor._commands as self.execute. We want to hide self.execute and self.command_executor since they are for internal usage so far. They may change by updating selenium library, for instance. # add commands driver.add_command(method='POST', url='session/$sessionId/path/to/custom/url', name='test_command') def do_command(): # some logic for arguments return_value = driver.execute_custom_command('test_command', arguments) # dom some process for the return value return result driver.custom_my_command = do_command ... result = driver.custom_my_command() # just call it ... I considered decoration way, but so far, this exposing two methods as public methods are simpler I think. What do you think? Your thought is welcome such as better naming etc.

Open Graph Description: Appium 2.0 will allow custom drivers/plugins add their own endpoint. Then, we want to allow clients to add custom commands for them. In Ruby, I've added like https://github.com/appium/ruby_lib_...

X Description: Appium 2.0 will allow custom drivers/plugins add their own endpoint. Then, we want to allow clients to add custom commands for them. In Ruby, I've added like https://github.com/appium/ruby_...

Opengraph URL: https://github.com/appium/python-client/pull/608

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f9aff99e-eff8-c9ae-df96-75669f73efb8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF64:2BEA3E:110E646:174A849:6A5F0EAE
html-safe-noncecc9a75b93daec02fd93715fbcc2f7e454775415a8e7341fe2e5c2c7e8c031ea0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY0OjJCRUEzRToxMTBFNjQ2OjE3NEE4NDk6NkE1RjBFQUUiLCJ2aXNpdG9yX2lkIjoiODUyNjc0NDIwODgzNzM4MTgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacef93eab8e06202a00ac98391de7458ae110e7e3f6d6b27ff3ae9c88be5515002
hovercard-subject-tagpull_request:662575629
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/appium/python-client/pull/608/files
twitter:imagehttps://avatars.githubusercontent.com/u/5511591?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5511591?s=400&v=4
og:image:altAppium 2.0 will allow custom drivers/plugins add their own endpoint. Then, we want to allow clients to add custom commands for them. In Ruby, I've added like https://github.com/appium/ruby_lib_...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebf8fa4b42b6d150def6175efb9b0f1ec8e9628d7229ee2bdf6e850e7bdad923e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/appium/python-client git https://github.com/appium/python-client.git
octolytics-dimension-user_id3221291
octolytics-dimension-user_loginappium
octolytics-dimension-repository_id18525395
octolytics-dimension-repository_nwoappium/python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id18525395
octolytics-dimension-repository_network_root_nwoappium/python-client
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7debc3c6cd5de09c6e22b47a1b9982acb2aabb7b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/appium/python-client/pull/608/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fappium%2Fpython-client%2Fpull%2F608%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fappium%2Fpython-client%2Fpull%2F608%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=appium%2Fpython-client
Reloadhttps://github.com/appium/python-client/pull/608/files
Reloadhttps://github.com/appium/python-client/pull/608/files
Reloadhttps://github.com/appium/python-client/pull/608/files
Please reload this pagehttps://github.com/appium/python-client/pull/608/files
appium https://github.com/appium
python-clienthttps://github.com/appium/python-client
Notifications https://github.com/login?return_to=%2Fappium%2Fpython-client
Fork 570 https://github.com/login?return_to=%2Fappium%2Fpython-client
Star 1.8k https://github.com/login?return_to=%2Fappium%2Fpython-client
Code https://github.com/appium/python-client
Issues 24 https://github.com/appium/python-client/issues
Pull requests 8 https://github.com/appium/python-client/pulls
Actions https://github.com/appium/python-client/actions
Wiki https://github.com/appium/python-client/wiki
Security and quality 0 https://github.com/appium/python-client/security
Insights https://github.com/appium/python-client/pulse
Code https://github.com/appium/python-client
Issues https://github.com/appium/python-client/issues
Pull requests https://github.com/appium/python-client/pulls
Actions https://github.com/appium/python-client/actions
Wiki https://github.com/appium/python-client/wiki
Security and quality https://github.com/appium/python-client/security
Insights https://github.com/appium/python-client/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fappium%2Fpython-client%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fappium%2Fpython-client%2Fissues%2Fnew%2Fchoose
KazuCocoahttps://github.com/KazuCocoa
appium:masterhttps://github.com/appium/python-client/tree/master
KazuCocoa:add-commandhttps://github.com/KazuCocoa/python-client/tree/add-command
Conversation 9 https://github.com/appium/python-client/pull/608
Commits 11 https://github.com/appium/python-client/pull/608/commits
Checks 0 https://github.com/appium/python-client/pull/608/checks
Files changed https://github.com/appium/python-client/pull/608/files
Please reload this pagehttps://github.com/appium/python-client/pull/608/files
feat: allow to add a command dynamically https://github.com/appium/python-client/pull/608/files#top
Show all changes 11 commits https://github.com/appium/python-client/pull/608/files
cfcbf27 add add_commmand in python KazuCocoa Jun 5, 2021 https://github.com/appium/python-client/pull/608/commits/cfcbf27e6fe64d75766e932332af349814b88754
1ce4593 add test KazuCocoa Jun 5, 2021 https://github.com/appium/python-client/pull/608/commits/1ce459301077149bdcbecf9e4b49322ab8fffc87
810a4ac add exceptions, tweak method KazuCocoa Jun 5, 2021 https://github.com/appium/python-client/pull/608/commits/810a4ac68fc0568c885cbd595c2dffe19fb9082b
02e4c84 append docstring KazuCocoa Jun 5, 2021 https://github.com/appium/python-client/pull/608/commits/02e4c84f79fb13961f88eaaa2e3dbed39bf05897
72f553d add $id example KazuCocoa Jun 5, 2021 https://github.com/appium/python-client/pull/608/commits/72f553deae1c9360b35970fa405fbe7710ee3443
c61ad83 use pytest.raises KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/c61ad83b002e8e8e2c2342eeeecf3716dc47446f
08f2bf1 add examples as docstring KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/08f2bf1cd17124cea4c48a28d5c21ffb45066354
7d26e85 add command method KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/7d26e8592f8db662b4a9f4f11e85c03b1f64264a
e5533ea tweak message KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/e5533eaaf4f6a2a41bd2bebc52dd97036a09a82b
9a7fe77 add example more KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/9a7fe77329a2c9232c5a635f62c4a4ffe1d9296c
3094513 tweak message KazuCocoa Jun 6, 2021 https://github.com/appium/python-client/pull/608/commits/309451384fc51414dbea9345097f788eff08dc13
Clear filters https://github.com/appium/python-client/pull/608/files
Please reload this pagehttps://github.com/appium/python-client/pull/608/files
Please reload this pagehttps://github.com/appium/python-client/pull/608/files
command_method.py https://github.com/appium/python-client/pull/608/files#diff-cafdef2b4c042dc48cf5fadfe5e8a3bab42e7032bc7a275dbdbcd432a75d5c2e
webdriver.py https://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
webdriver_test.py https://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
appium/webdriver/command_method.pyhttps://github.com/appium/python-client/pull/608/files#diff-cafdef2b4c042dc48cf5fadfe5e8a3bab42e7032bc7a275dbdbcd432a75d5c2e
View file https://github.com/KazuCocoa/python-client/blob/309451384fc51414dbea9345097f788eff08dc13/appium/webdriver/command_method.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/appium/python-client/pull/608/{{ revealButtonHref }}
appium/webdriver/webdriver.pyhttps://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
View file https://github.com/KazuCocoa/python-client/blob/309451384fc51414dbea9345097f788eff08dc13/appium/webdriver/webdriver.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/appium/python-client/pull/608/{{ revealButtonHref }}
https://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
https://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
https://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
https://github.com/appium/python-client/pull/608/files#diff-646299ef4dd5d3b0e5d58632c99871ba450a1481e017654f4e95b11a2847c945
test/unit/webdriver/webdriver_test.pyhttps://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
View file https://github.com/KazuCocoa/python-client/blob/309451384fc51414dbea9345097f788eff08dc13/test/unit/webdriver/webdriver_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/appium/python-client/pull/608/{{ revealButtonHref }}
https://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
https://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
https://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
https://github.com/appium/python-client/pull/608/files#diff-32a8018e1c71ca6a6d7e9ed532e876bbd380ebeabcf8596551b790a30819117f
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.