-
-
Notifications
You must be signed in to change notification settings - Fork 758
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 able to call 'setSetting' API #1310
Comments
thanks The error looks coming from XCTest framework internal. I don't think we can fix it in Appium side since Appium gets data by XCTest framework. You could try |
@KazuCocoa Something like this?
|
@KazuCocoa Where and how do I update these settings? Are these to be set when running appium server or can be set via code? Thanks |
Like https://github.com/appium/appium/blob/master/docs/en/commands/session/settings/update-settings.md linked in the settings.md or via capabilities like you commented |
What is the minimum version of java_client where this is supported? What should I import? driver.setSetting is showing error in my IDE. Thanks |
I don't know Java client, but maybe the latest one has... |
I tried latest one as well (7.3.0), I am still getting the error setSetting not found. |
What about providing the setting via capabilities as you addressed in https://github.com/appium/appium/issues/14022#issuecomment-594254144 ? |
@KazuCocoa Even if that works it will set for entire session and I do not want that as test execution time will increase exponentially. This is not XCTest issue, this works fine with XCUITest from Xcode. This issue is because WDA is slow on pages with 400+ links, which can be worked around using the settings mentioned but java_client is not letting me use setSetting method. So this is java_client issue. If java_client works and WDA does not respond to it them it becomes WDA issue. |
Okay, so this issue is cannot call hm, Java client seems to have the API By Settings API was improved to accept string names. #1240, the key accepts String. |
Thanks @KazuCocoa |
@mykola-mokhnach I'm seeing an issue with webdriveragent. What is the best way to log the same? |
@KazuCocoa @mykola-mokhnach Could any java_client dev guide me? |
https://github.com/appium/java-client/wiki is for devs |
I meant any committers to the java_client project look into this. |
Perhaps @SrinivasanTarget can help if he has a chance. This issue is about |
Sure will have a look at this soon. |
Thank you Srini @SrinivasanTarget |
@SrinivasanTarget did u get a chance to take a look amid all that is happening around us. |
@jineshqa I guess setSetting method is available in "AndroidDriver" and "IOSDriver". I mean if we are using AppiumDriver driver = new IOSDriver() then setSetting method is not visible. If we are still taking AppiumDriver instance then typecasting can help us. |
@shibupanda you are right...it requires OS specific driver to work. |
facebookarchive/WebDriverAgent#1074
The problem
Appium fails to fetch snapshot. I think it might be related to above issue.
Environment
Details
Appium fails to take snapshot with error
2020-03-03 15:49:52.959309-0800 WebDriverAgentRunner-Runner[13001:2373474] Cannot take the snapshot of Window after 15 seconds
2020-03-03 15:49:52.959665-0800 WebDriverAgentRunner-Runner[13001:2373474] Internal error: Error Domain=com.apple.dt.xctest.automation-support.error Code=5 "Error kAXErrorIPCTimeout getting snapshot for element <AXUIElementRef 0x7fdc83546d80> {pid=12189} {uid=[ID:9999 hash:0xe948db3f07000000]}" UserInfo={NSLocalizedDescription=Error kAXErrorIPCTimeout getting snapshot for element <AXUIElementRef 0x7fdc83546d80> {pid=12189} {uid=[ID:9999 hash:0xe948db3f07000000]}}
2020-03-03 15:49:52.961785-0800 WebDriverAgentRunner-Runner[13001:2373474] Skipping source dump for 'Window' because its snapshot cannot be resolved
Link to Appium logs
https://gist.github.com/jineshqa/de4aa49bd17008ed397dc5fb3821079c
Code To Reproduce Issue [ Good To Have ]
Not reproducible with sample app.
The text was updated successfully, but these errors were encountered: