-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selenium.common.exceptions.WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported #949
Comments
What about using |
I try replace appium_server_url = 'http://localhost:4723/wd/hub' |
Could you share the appium server log as well? |
Yes, this is log of appium server when i use |
Please use the latest version. I'm not sure how you installed the Appium, but current Appium is v2.x and newer driver version. 1.9.1 is pretty old. https://appium.io/docs/en/2.4/quickstart/install/ |
Thanks. but i remove this appium version 1.9.1 and i run it in appium version v2.4.1 but in appium server not show any error but in log build in IDE error in this link https://gist.github.com/apatheticL/476f75fcc7621ffaeb376350339d969c |
The error means your script failed to find the element. Possibly the device's screen did not have the matched element. This is how to write test code, so Appium is working right now |
|
The problem
I try example for text of appium in this link : https://appium.io/docs/en/2.4/quickstart/test-py/ . but it not work and show error
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000001EFC51A8EC0>
response = {'status': 404, 'value': '{"status":9,"value":{"error":"unknown command","message":"The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource","stacktrace":""}}'}
Please help me fix it. Thank so much,-.
Environment
Link to Appium Logs
(https://gist.github.com/apatheticL/4f99a3ce0552b3a0e67f1efe14079c2a)
Code To reproduce issue
this is my code:
import unittest
from appium import webdriver
from appium.webdriver.common.appiumby import AppiumBy
from appium.options.android import UiAutomator2Options
capabilities = dict(
platformName='Android',
automationName='uiautomator2',
deviceName='My device name',
appPackage='com.android.settings',
appActivity='.Settings',
# language='en',
# locale='US'
)
appium_server_url = 'http://localhost:4723/wd/hub'
APPIUM_PORT = 4723
APPIUM_HOST = '127.0.0.1'
capabilities_options = UiAutomator2Options().load_capabilities(capabilities)
class TestAppium(unittest.TestCase):
def setUp(self) -> None:
self.driver = webdriver.Remote(command_executor=appium_server_url, options=capabilities_options)
if name == 'main':
unittest.main()
The text was updated successfully, but these errors were encountered: