question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 13: Appium gets timed out at Sending '_rpc_forwardSocketData:'

See original GitHub issue

The problem

On executing the Appium script on a hybrid app. The script is getting stuck and later timed out at

2019-09-21 07:50:39:258 - [HTTP] --> POST /wd/hub/session/2d7e69d4-96a8-4ae1-bc56-e04819ee958c/element
2019-09-21 07:50:39:258 - [HTTP] {"using":"xpath","value":"//span[text()='xxx']"}
2019-09-21 07:50:39:259 - [debug] [W3C (2d7e69d4)] Calling AppiumDriver.findElement() with args: ["xpath","//span[text()='xxx']","2d7e69d4-96a8-4ae1-bc56-e04819ee958c"]
2019-09-21 07:50:39:259 - [debug] [XCUITest] Executing command 'findElement'
2019-09-21 07:50:39:260 - [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
2019-09-21 07:50:39:260 - [debug] [BaseDriver] Waiting up to 0 ms for condition
2019-09-21 07:50:39:260 - [debug] [RemoteDebugger] Executing atom 'find_element'
2019-09-21 07:50:39:260 - [debug] [RemoteDebugger] Executing 'find_element' atom in default context
2019-09-21 07:50:39:260 - [debug] [RemoteDebugger] Sending javascript command: '(function(){return function(){var k=this;functi...'
2019-09-21 07:50:39:261 - [debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to app 'PID:1169', page '1' (id: 8)
2019-09-21 07:52:39:257 - [HTTP] <-- POST /wd/hub/session/2d7e69d4-96a8-4ae1-bc56-e04819ee958c/element - - ms - -

Environment

  • Appium version (or git revision) that exhibits the issue: v1.15.0-beta.1
  • Desktop OS/version used to run Appium: 10.14.5
  • Node.js version (unless using Appium.app|exe): v10.16.2
  • Npm or Yarn package manager: 6.9.0
  • Mobile platform/version under test: iOS 13
  • Real device or emulator/simulator: iPhone X
  • Appium Python Client: 0.47

Details

On trying to perform a simple findElement, the appium gets stuck and does not proceed further. After 300 secs it gets timed out. Switching to the webiew and identifying the webview works fine, but no commands are been executed.

Link to Appium logs

https://gist.github.com/mayureshshirodkar/6705eb5c6d3ef7f50d29ebb704593cbc

Code To Reproduce Issue [ Good To Have ]

element = helper_wait_for_visibility_element(context, xpath, 10)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
patrjamcommented, Nov 14, 2019

Hi,

I have the same problem with Sending '_rpc_forwardSocketData, so I uninstalled 1.15.0 version and installed v1.16.0-beta.1, but it did not fix the issue. Running of tests is veeery slow because of these timeouts.

The problem:

2019-11-14 12:26:35:813 [HTTP] --> POST /wd/hub/session/57ca9e5b-6e17-4114-8b65-ee432ff7d553/elements

2019-11-14 12:26:35:813 [HTTP] {"using":"css selector","value":".input--hp-search"}

2019-11-14 12:26:35:814 [W3C (57ca9e5b)] Calling AppiumDriver.findElements() with args: ["css selector",".input--hp-search","57ca9e5b-6e17-4114-8b65-ee432ff7d553"]

2019-11-14 12:26:35:814 [XCUITest] Executing command 'findElements'

2019-11-14 12:26:35:814 [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id

2019-11-14 12:26:35:815 [BaseDriver] Waiting up to 0 ms for condition

2019-11-14 12:26:35:815 Executing atom 'find_elements'

2019-11-14 12:26:35:815 Executing 'find_elements' atom in default context

2019-11-14 12:26:35:815 Sending javascript command: '(function(){return function(){var k=this;functi...'

2019-11-14 12:26:35:817 Sending '_rpc_forwardSocketData:' message to app 'PID:5399', page '1', target 'page-6' (id: 41)

2019-11-14 12:28:35:813 [HTTP] <-- POST /wd/hub/session/57ca9e5b-6e17-4114-8b65-ee432ff7d553/elements - - ms - -

Environment:

Mobile platform/version under test: iOS 13.2 Real device or emulator/simulator: iPad 2 npm version 6.11.3 CodeceptJS Appium

Code To Reproduce Issue

Feature('The Internet example test');

Scenario('Home page', (I) => {

    I.amOnPage('http://www.seznam.cz')
    I.fillField('.input--hp-search', 'dog')
    I.click('.button--with-input')
    I.seeElement('.ZooCardAnimal')
});
0reactions
mykola-mokhnachcommented, Oct 6, 2019

Closed as fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeouts - Appium
The type of operation to set the timeout for. Valid values are: 'script' for script timeouts, 'implicit' for modifying the implicit wait timeout...
Read more >
Appium IOS time out finding the element when API call return ...
i am guessing this issue is because the API return large data set and appium ios driver is taking long time to parse...
Read more >
Unable to start session from appium inspector - Issues/Bugs
I am getting error message when I try to start the session in Appium inspector: "Could not connect to server; are you sure...
Read more >
Operation timed out while switching to webview context in ...
1, Appium Java client 6.1.0, Selenium version 3.141.59. When driver.context(s); is executed, it throws following exception. io.appium.
Read more >
ERROR [BROWSERSTACK_SO_TIMEOUT] Session errored ...
... run 3 scenarios in one feature using appium, wdio in browserstack. ... errored because an Appium command failed to respond and timed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found