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
ValueError: Timeout value connect was <object object at >, but it must be an int, float or None #4761
Comments
Can you very the android driver name.I think so. caps["deviceName"] = "" caps["platformName"] = "Android" caps["platformVersion"] = "10" caps["automationName"] = "uiAutomator2" caps["appPackage"] = "com.google.android.apps.maps" caps["appActivity"] = "" url = "http://localhost:4723/wd/hub" self.driver = webdriver.Remote(url, caps) |
@gunaNeelamegam I use Appium library and Flutter's Android for testing. Where is self.driver comes from ? Any Reference to Docs ? |
@v1v3kls we are working with creating the own Keyword using robot framework with bare python script. https://github.com/appium/python-client |
@gunaNeelamegam I am new to Appium + Robot. I am using .robot file to execute the code. And I run with Do I need to run python code to run script ? Please help. |
@v1v3kls yes,if you interested to create own Keyword, follow the steps below. ###Steps: 1, create the python file and inside the python file implement the function or class based components . Note: 1, when you create the class based component import the keyword decorator. 2, python class name as same as python file name and import into robot file. 3, use as the keyword as same as using. 4, you,can also able to use the app the external.module inside the python script as you created. If you have any doubts ping me. |
Thank you. I do not want to write Python Script. I came reading from the link - https://pypi.org/project/robotframework-appiumlibrary/2.0.0/#usage I see there is way of testing the app using Only Robotframework from above link. Why not I use that ? As you had suggested, still I am not getting How Python and Robot Interacts ? - Are you suggesting this one ? - https://github.com/robotframework/RobotDemo/blob/master/keyword_driven.robot |
Okay 👍, Readability and scalability of the code is must need for contribution. If the code base goes must higher you cannot find where the error is raised for debugging tooks the time long. So must to break down the script it's important. |
I am also facing same issue, can someone please help. |
Please ...
…On Fri, 12 May, 2023, 2:36 pm aamirnesar, ***@***.***> wrote:
I am also facing same issue, can someone please help.
—
Reply to this email directly, view it on GitHub
<#4761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5UXUAMECPRHCULIMIQ74LXFX4PZANCNFSM6AAAAAAX5PC4KI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
On Fri, 12 May, 2023, 2:36 pm aamirnesar, ***@***.***> wrote:
I am also facing same issue, can someone please help.
Ping the issue
… —
Reply to this email directly, view it on GitHub
<#4761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5UXUAMECPRHCULIMIQ74LXFX4PZANCNFSM6AAAAAAX5PC4KI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes,it's seems correct but the robot run on single threaded so you may need
to start the appium server using the subprocess module.
code:
Steps to up the appium server programmatically.
def start_appium_server(base_path: str = "/wd/hub", port: int = 4723):
server_cmd = (f"appium --base-path {base_path} -p {port}")
fp = open(os.devnull, "w")
process = subprocess.Popen(server_cmd.split(), stdout=fp, stderr=fp)
time.sleep(5)
console("Appium Server started")
return process
…On Fri, 12 May, 2023, 7:29 pm v1v3kls, ***@***.***> wrote:
At the start thread I had mentioned appium Server is run using,
appium --allow-insecure chromedriver_autodownload --allow-cors
This seems to be a Node Package installed globally.
Do Robot framework requires Appium Server to be run in the background as a
Python script?
Now, instead of running the above Node JS package in commandline, I am
running a python script and the content is,
import os
os.system("appium")
Ref:
https://stackoverflow.com/questions/51734382/how-to-start-appium-server-programmatically-in-python
—
Reply to this email directly, view it on GitHub
<#4761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5UXUFCZAWNIS3RP4BAZIDXFY64BANCNFSM6AAAAAAX5PC4KI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have the same issue and setting the lib urllib3 to 1.26.15 seems to have unblocked me |
got the same error on mac |
I had downgraded to Python 3.8 now. Now, I am trying to run the robot file for opening the App. I am getting error as below.
I had also run the Appium Server as below.
|
This issue is based on connection between appium server to appium client.
These commands uninstall the service that running as the background service
in device
Use the below command to rectify:
Before that Mobile must be connected
adb uninstall io.appium.settings
adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test
adb uninstall io.appium.unlock
…On Sat, 20 May, 2023, 11:08 am v1v3kls, ***@***.***> wrote:
I had downgraded to Python 3.8 now.
Now, I am trying to run the robot file for opening the App. I am getting
error as below.
MaxRetryError: HTTPConnectionPool(host='"http', port=80): Max retries
exceeded with url: //127.0.0.1:4723/wd/hub/%22/session (Caused by
NameResolutionError('<urllib3.connection.HTTPConnection object at
0x039F8748>: Failed to resolve \'"http\' ([Errno 11001] getaddrinfo
failed)'))
—
Reply to this email directly, view it on GitHub
<#4761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5UXUEY7X37ZN7LKEIXVK3XHBKHFANCNFSM6AAAAAAX5PC4KI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for the reply. Only Emulator is used for testing. Should I uninstall the above package even though I use Emulator Only ? [Haven't verified the packages is installed] |
What ever the device when testing with appium it implicitly install all the dependency services. Can you provide much more information error log |
@AntoineGa How is this applicable If I use only Robot Framework alone ? [I mean using DSL language] |
set the version in your requirements.txt file |
But, there is no urllib3 mentioned here ? I was asking about urllib version to be specified. |
This tracker is only for bug reports and enhancement requests related to Robot Framework itself. This issue seem to be about AppiumLibrary and it thus doesn't belong here. If you suspect there's a bug in AppiumLibrary, submit an issue to its tracker. There's been active discussion here. Feel free to continue even though I now close this issue. You can also try asking help on our Slack or other support forums listed at robotframework.org. |
OS: Windows
Python Version: 3.11.3
Packages Installed while installing Robotframework:
I am trying run a sample robot file for flutter generated Android App.
I am getting below error.
ValueError: Timeout value connect was <object object at 0x000001E972884B80>, but it must be an int, float or None.
Below is my robot file config. And appium server is running with
appium --allow-insecure chromedriver_autodownload --allow-cors
Please help. :)
The text was updated successfully, but these errors were encountered: