Error webdriver when testing appium (native to webview) - selenium

When I tried to make automation with robot, there is an error when apps change from native to webview. This is the error message.
WebDriverException: Message: An unknown server-side error occurred
while processing the command. Original error: Could not proxy. Proxy
error: Could not proxy command to the remote server. Original error:
timeout of 240000ms exceeded

Related

Enter Key throws error when running WDIO on Browserstack

I'm trying to run some WDIO tests on Browserstack (#wdio/browserstack-service#7.24.0). Using chrome browser and Samsung Galaxy S20 capabilities. There is a point where I need to send Enter key, I'm using .keys('\uE007') and the action is performed on the device as expected, but there is an error coming from BS. ERROR webdriver: Request failed with status 404 due to Error: The URL '/wd/hub/session/0296501ef9a8127fa1f5663921d3b1e52463eaf1/actions' did not map to a valid resource
I tried to use try/catch to prevent that error marking my execution as failed, but try/catch does not stop it. My guess, it is because of async logic during they send key.
so, I need help to prevent that error or find a way to catch it properly.
any suggestion?

Nodejs application with okta authentication throwing 'X-Frame-Options' to 'sameorigin' error and state mismatch errors

I have a nodejs application.
On trying to log in, I am getting this error.
dev-xxxxx-okta refused to connect. The error in the log is:
Refused to display 'https://dev-206911.okta.com/login/login.htm?fromURI=/oauth2/v1/authorize/redirect?okta_key=AhxDp3Qod0iqq9VKxFNvd6WTRA601e5Sx0FcPl1lS_k' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Tried to fix it but couldn't. I am seeing the IP address of the VM in the browser logs.
My .env file has the IP address and port of the application. Without the subdomain, it works fine. But with domain the URL https://dev-206911.okta.com/login/login.htm?fromURI=/oauth2/v1/authorize/redirect?okta_key=AhxDp3Qod0iqq9VKxFNvd6WTRA601e5Sx0FcPl1lS_k is throwing this error:
Error: state mismatch, could not find a state in the session, this is likely an environment setup issue, loaded session: undefined
at ..../node_modules/openid-client/lib/passport_strategy.js:169:20
at processTicksAndRejections (internal/process/task_queues.js:97:5)

okhttp 3.7.0 SSL Shutdown failed threw UnknownHostException and not SSLException

While making a network request with low connectivity very rarely I see that I get
<-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host ....
while my server seems to have got the request correctly. I found 1 instance of it with device logs which shows actually an SSLException happened
D/NativeCrypto: jniThrowException: javax/net/ssl/SSLException: Read error: ssl=0x7dc365f080: I/O error during system call, Software caused connection abort
D/NativeCrypto: jniThrowException: javax/net/ssl/SSLException: SSL shutdown failed: ssl=0x7dc365f080: I/O error during system call, Broken pipe
My question is why does okhttp and retrofit throw UnknownHostException and not SSLException, and is there a way to actually get the SSLException as currently my app thinks the request did not go while server processes that request.
I am using
okhttp:3.10.0
retrofit:2.2.0
adapter-rxjava2:2.2.0

Getting error "org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused:"

I am using selenium webdriver for the testing application. i am using using Marionettedriver for the browser. however when I run the code it gives the error "org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused:" I have check the system path also no issue in the same.
so please suggest how to solve the error.
Also getting error " error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context
USAGE:
geckodriver.exe [FLAGS] [OPTIONS]".
I am not able to understand for what issue this error is appears. So please let me know how to solve this
I have used the jar file for selenium server and selenium standalone server in the project. still same error shows. Also as mentioned above it shows the error of " error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context
USAGE:
geckodriver.exe [FLAGS] [OPTIONS]".
When you run your webdriver tests, you need to "obtain" browser from selenium server/grid. Connection refused message means there is no listening server on a host/port you provided.

Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "

I am using restkit and am trying to hit https site from my simulator.
iPad simulator taking the system proxy while sending the request i guess and proxy blocked these request .
Same code works fine when i run in iPad device.
Any one please help me.
Error i get is
I restkit.network:RKObjectRequestOperation.m:174 POST 'https://myurl.net/api/auth/entry'
2013-07-19 18:06:43.515 Dashboard[19149:4703] E restkit.network:RKObjectRequestOperation.m:570 Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x85806d0
Want to declare below line in Build setting pre process macros not use....... option
_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_