# Clinical Visit(Clinical Visit Management): Error communicating with the remote browser. It may have died.(..) \[resolved\]

**URL:** <https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664>\
**Category:** Quality Assurance\
**Created:** [September 15, 2021, 10:56am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664 "2021-09-15T10:56:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 10:56am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/1 "2021-09-15T10:56:13Z")

</div>

Hey @devs! i have had a blocker for a while now. Tests are not running to finish up the scenarios like the way they are supposed to do (for example, the clinical visit tests only end at the first scenario which is adding a visit note, filling in the details and then add the visit note to the table).

All am saying is , only the first scenario is completed so after [this error](https://pastebin.com/wE5Aw9Xp) ,the remaining tests (scenarios) are skipped

This is what I tried in that regard but failed:

_ **`I installed the standalone-refapp so that i can spin from it thinking it is a network connection issue but it didnt work`** _

_**`i then created a server using the openMRS SDK so that I can spin from it(Just incase it was a network issue) but it didnt yield any fruits yet.`**_

cc: @sharif @kdaud @jwnasambu

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [September 15, 2021, 11:05am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/2 "2021-09-15T11:05:19Z")

</div>

> [@mherman22](#):
>
> the clinical visit tests only end at the first scenario which is adding a visit note, filling in the details and then add the visit note to the table)

@mherman22 Sorry about this, Are you referring to clinical visit Test for RefApp 2.x or RefApp 3.x

---

<div class="post-metadata">

**Author:** ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)\
**Post date:** [September 15, 2021, 11:21am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/3 "2021-09-15T11:21:12Z")

</div>

we can also look at your code for this via a pr cc @mherman22

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 11:23am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/4 "2021-09-15T11:23:14Z")

</div>

ooh its RefApp 2.x

> [@herbert24](#):
>
> we can also look at your code for this via a pr cc

i didn’t get you,come again please!!

---

<div class="post-metadata">

**Author:** ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)\
**Post date:** [September 15, 2021, 11:25am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/5 "2021-09-15T11:25:39Z")

</div>

have you written any code that you are trying to test and its breaking with the above logs?

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 11:27am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/6 "2021-09-15T11:27:08Z")

</div>

ooh yeah, lemi get that PR ready cc: @herbert24

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 12:17pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/7 "2021-09-15T12:17:50Z")

</div>

> [@herbert24](#):
>
> we can also look at your code for this via a pr

take a look → [RATEST-164 : Prepare a file in the uitestframework to be deployed within the test instance by mherman22 · Pull Request #47 · openmrs/openmrs-contrib-uitestframework · GitHub](https://github.com/openmrs/openmrs-contrib-uitestframework/pull/47)

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [September 15, 2021, 5:01pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/8 "2021-09-15T17:01:32Z")

</div>

> [@mherman22](#):
>
> Tests are not running to finish up the scenarios like the way they are supposed to do (for example, the clinical visit tests only end at the first scenario which is adding a visit note, filling in the details and then add the visit note to the table).

This is usually caused by online servers especially when your connection is not stable. Your are probably using an online server which may not give you a better report on the test especially when your connection is not stable.

Spinning from a local instance will solve the issue.

> [@mherman22](#):
>
> I installed the standalone-refapp so that i can spin from it thinking it is a network connection issue but it didnt work

If the test run can not connect to standalone server, then its something to look into, it sometimes happen when running Ubuntu os though not sure why?. @sharif has an experience on this and can guide !

> [@mherman22](#):
>
> i then created a server using the openMRS SDK so that I can spin from it(Just in case it was a network issue) but it didnt yield any fruits yet

@mherman22 were you able to set up the server using sdk and running well ?

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 5:52pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/9 "2021-09-15T17:52:43Z")

</div>

> [@kdaud](#):
>
> were you able to set up the server using sdk and running well

Yeah I did and its running properly

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [September 15, 2021, 6:08pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/10 "2021-09-15T18:08:42Z")

</div>

What happens when you use chrome driver and set headless property value to true ?

```auto
webdriver=chrome
headless=true

```

---

<div class="post-metadata">

**Author:** ![insookwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/insookwa/32/11433_2.png) [@insookwa](https://talk.openmrs.org/u/insookwa)\
**Post date:** [September 15, 2021, 6:13pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/11 "2021-09-15T18:13:39Z")

</div>

> [@mherman22](#):
>
> Yeah I did and its running properly

in case it persists @mherman22 you can also set the headless to false so that you can see the test running and see exactly where it’s failing from. as @kdaud has advised , you can also run on chrome and see if it will pass

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 15, 2021, 6:51pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/12 "2021-09-15T18:51:55Z")

</div>

> [@kdaud](#):
>
> ```auto
> webdriver=chrome
> headless=true
> 
> ```

Thanks, I’ll get back with the experience after doing that .

> [@insookwa](#):
>
> case it persists @mherman22 you can also set the headless to false so that you can see the test

Thanks , I’ll get back after these changes

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 16, 2021, 11:39am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/13 "2021-09-16T11:39:07Z")

</div>

@kdaud @sharif @insookwa after taking into account the advice given in this talk thread. i did the following:-

- i installed chrome and then downloaded the version of `chromedriver` compatitble with my chrome version (which is v93)

- i then changed my `test.properties` to use the chromedriver.

However i get [chrome - Pastebin.com](https://pastebin.com/nXdbvEnG) which is quite similar to what i got in firefox.

My eyes are drawn to `	at ✽.a user clicks on Allergies link from Patient dashboard page(file:///home/mherman22/forks/openmrs-contrib-qaframework/src/test/resources/features/refapp-2.x/14-clinicalVisit/clinicalVisit.feature:19)` because actually the workflow doesnt exceed this step in the UI

FYI: I have tested this accross all the instances available i.e ref standalone, server created using openmrs-sdk and the online qaserver.

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [September 16, 2021, 12:12pm UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/14 "2021-09-16T12:12:12Z")

</div>

> [@mherman22](#):
>
> i get [chrome - Pastebin.com](https://pastebin.com/nXdbvEnG) which is quite similar to what i got in firefox

> [@mherman22](#):
>
> I have tested this accross all the instances available i.e ref standalone, server created using openmrs-sdk and the online qaserver

Usually the server can fail the build plan when your PC memory is not well managed. By managing the memory well gives a better result for local build plans. I find this documentation at [https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors](https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors) good enough to guide accordingly.

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [September 20, 2021, 1:15am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/15 "2021-09-20T01:15:21Z")

</div>

@mherman22 any progress ?

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 20, 2021, 2:46am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/16 "2021-09-20T02:46:53Z")

</div>

For some reason I have not progressed yet…

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [September 20, 2021, 3:23am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/17 "2021-09-20T03:23:36Z")

</div>

> [@mherman22](#):
>
> I have not progressed yet…

@mherman22 do you have some time and we sync to have the issue sorted ?

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 20, 2021, 4:51am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/18 "2021-09-20T04:51:12Z")

</div>

Yeah , `10:30am` okay by you?!

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 20, 2021, 7:33am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/19 "2021-09-20T07:33:29Z")

</div>

just a reminder @kdaudim waiting here → [herman.com](https://meetings.dialpad.com/room/hermanmuhereza22)

---

<div class="post-metadata">

**Author:** ![mherman22](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mherman22/32/20233_2.png) [@mherman22](https://talk.openmrs.org/u/mherman22)\
**Post date:** [September 23, 2021, 11:48am UTC](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664/20 "2021-09-23T11:48:46Z")

</div>

This blocker was solved after a call with @kdaud where we pulled changes from `master` since my fork was not up-to-date with master. The tests are now passing ✈

[Next page](https://talk.openmrs.org/t/clinical-visit-clinical-visit-management-error-communicating-with-the-remote-browser-it-may-have-died-resolved/34664.md?page=2)
