-
Notifications
You must be signed in to change notification settings - Fork 555
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
Not printing web view context through "print(driver.context)" command #938
Comments
Please attache the appium server log as well |
i am checking same with bs team,once get update i will share same |
Appium logs.txt |
For below one?
In the XCUITest driver, appium gets these info via WebInspecor on the host machine. It could take a few seconds to get full contexts. So retrying a couple of times, of using https://appium.github.io/appium-xcuitest-driver/5.12/execute-methods/#mobile-getcontexts to get the context with Or setting |
As the example below in the already attached documentation https://appium.github.io/appium-xcuitest-driver/5.12/execute-methods/, you could send it as
|
Hi, |
It indicates no webview found in |
but web view there, if i check manually, pls suggest how to get web view through script |
even I configured 5000ms , same issue like webview context not showing through script |
Do you mean the web view was WebInspector inspectable and could be found by the host OS's Web inspector? I'm not sure what communication occurred between Appium and macOS's Web Inspector (which appium gets WebView related data from), but basically the result depends on how macOS's Web Inspector respond to Appium. https://appium.github.io/appium-xcuitest-driver/5.12/setup/ The full appium log related to the request may help to see what occurred. |
Downloads.zip |
Did the webview accessible via WebInspector? It looks like the script execution and manual setup log used different devices. Please compare the same environment to reduce diffs on the device level. I guess the script execution hasn't configured Web Inspector. |
The problem
Not printing context through "print(driver.context)" statement
Environment
Package Version
Appium-Python-Client 2.1.4
async-generator 1.10
attrs 22.1.0
certifi 2022.9.24
cffi 1.15.1
charset-normalizer 2.0.12
cryptography 38.0.1
cx-Oracle 8.3.0
cycler 0.11.0
fonttools 4.37.3
h11 0.14.0
idna 3.4
kiwisolver 1.4.4
matplotlib 3.5.3
natsort 8.3.0
numpy 1.21.6
outcome 1.2.0
packaging 21.3
Pillow 9.2.0
pip 21.3.1
pycparser 2.21
pyOpenSSL 22.1.0
pyparsing 3.0.9
PySocks 1.7.1
python-dateutil 2.8.2
PyYAML 6.0
requests 2.26.0
robotframework 4.1.2
robotframework-pabot 2.13.0
robotframework-stacktrace 0.4.1
selenium 4.0.0
setuptools 60.2.0
six 1.16.0
sniffio 1.3.0
sortedcontainers 2.4.0
trio 0.21.0
trio-websocket 0.9.2
typing_extensions 4.3.0
urllib3 1.26.12
urllib3-secure-extra 0.1.0
wheel 0.37.1
wsproto 1.2.0
Python 3.11
Details
Link to Appium Logs
Code To reproduce issue
def web_view_loc(driver, locator, value):
webview_context = None
print(driver.contexts)
time.sleep(180)
The text was updated successfully, but these errors were encountered: