Cypress He Automation Client Disconnected Cannot Continue Running Tests

hannahmolloy

@hannahmolloy

hey I am trying to use trigger('change') to invoke my onChange callback on my React component but it doesn't work, I have noticed that trigger('blur') DOES invoke the onBlur callback and wondering if anyone else has run into this problem

hello good morning everyone, hope this message find you in good health

i have another problem as always, i have a form containing check-in and check-out date, and a search button, when i select both dates, and click search, it passes opens new tab and its url contains booking website with check-in and check-out date , now how to check that

thanhtuan0910

@thanhtuan0910

Hi @cypressio, I am a new in cypress automation testing. When i develop a simple test case to open a site, then i get an error about http code 401 Unauthorized

what should i do in this case

as normally, this site displays a popup to require enter user and password?

Hi friends , i am trying to do "Reload frame" using cy.reload() but page is not refreshing but when does that manually by right clicking on the rightside iframe side , page is getting refreshed any idea how to perform "reload frame" ?

@x-yuri, different font configurations would be my guess. See for example https://wiki.archlinux.org/index.php/Font_configuration for more info. For reference, I'm using the following Dockerfile

                                  FROM                  cypress/included:3.4.0                  ADD                  fonts.conf /etc/fonts/local.conf                                    ENTRYPOINT                  []                              

.. and fonts.conf

                                                      <?xml version='1.0'?>                    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>                    <fontconfig>                    <match                      target="font">                    <edit                      mode="assign"                      name="hinting">                    <bool>true</bool>                    </edit>                    </match>                    <match                      target="font">                    <edit                      mode="assign"                      name="hintstyle">                    <const>hintslight</const>                    </edit>                    </match>                    <match                      target="font">                    <edit                      mode="assign"                      name="antialias">                    <bool>true</bool>                    </edit>                    </match>                    </fontconfig>                                                

1 reply

@x-yuri, this configuration ensures identical rendering inside Docker and outside on MY machine, which I desired

The right configuration for YOU might be different though

On my current project, I've not attempted to control other peoples font configuration, so we've disabled snapshot comparisons altogether when not in CI or when not opting in

I have no idea what is going on with cypress. There is a shadow click that is not in the code but cypress adds it and tries to perform click and fails because click requires a DOM element. Funny thing is that exactly the same set of commands work in the first test. Code:

image.png

image.png

Hi, question, when a button is clicked, nothing happens, the test succeeds, the not confirmation form is displayed, but the request is sent. What could be the problem?

NaveenGKumar1996

@NaveenGKumar1996

Hi, Everyone My scenario is like I need to type the value in the text box and it will display some suggestion based on that I need to click it, In cypress how is it possible I have tried using cy.get('').type('some value','{downarrow}{enter}') is it correct

When clicked, the body changes to body style = "overflow: hidden;", but the style itself does not appear in cypress, how to display the hidden form style = "overflow: hidden;"?

Hi, does anyone get this issue when trying to type into a standard field with type=text?
Uncaught TypeError: Converting circular structure to JSON --> starting at object with constructor 'Window' --- property 'parent' closes the circle with cypress

Anyone successfully have browser launching working on windows with the test runner?

2 replies

Is it possible to integrate cypress running the test on a browser when for example visiting a website without a user have to type npx cypress open?

2 replies

image.png

Hi guys, i am new to Cypress and was just exploring my first tests on cypress and i encounter below issues when trying to test will my application. Application page loads but some of the sections are not loaded , and when i check the console i see XHR request returning 400 for many requests when called by Cypress - see the screenshot above

hi, after upgrading to cypress version 3.7.0 I can't run tests on Chrome anymore. The Electron works but the Chrome header is stuck on about:blank. The console log shows the following error message, "The automation client disconnected. Cannot continue running tests.Failed to connect to Chrome, retrying in 1 second (attempt 18/32)" . I am running cypress on windows 10. Any clue as to how I can fix this issue?

When clicked, the cypress redirects and does not show the form, everything works in the browser when clicked, a request is sent, and body changes to body style overflow hidden, how to remove the redirect and flip the form to save?

Anybody know why Cypress might think I'm still on a version of node that is less than < 0.12? I have specified in my cypress.json "nodeVersion": "system". Does not seem to be working.

Uncaught Error: Sync-request requires node version 0.12 or later. If you need to use it with an older version of node you cannpm install sync-request@2.2.0, which was the last version to support older versions of node.

Note, I have also installed the suggested version of sync-requests which doesn't help either.

Oh, I see. Likely need to use cy.task

Hey guys, trying to get local storage to set before each test and it is causing tests to time out.
I checked docs and this looked like what was supposed to be done

              cy.window().then(                  (win)                  =>                {       win.localStorage.setItem(            

I saw something about cy.wrap() but the docs weren't clear to me what that was supposed to do

Hi Guys, I have some weird issue. If I login through Cypress, some of the site pages are failing to load data and throwing 403 forbidden error in console but outside cypress all looks good with same user. Really appreciate any feedback. Thanks

3 replies

image.png

Anand Panimaya

@panimaya_gitlab

The login API call returns a token in the response headers. I need to use it in subsequent requests. Can someone please point me in the right direction on a solution?
I'm able to print the value to log, but when I try to use it outside the function, it fails. How can I use this value in the rest of my test suite?

Kosmas Papadatos

@kpapadatos

image.png

Hello guys, I need to make an integration test with an OAuth2 enabled service (Microsoft AAD). I understand that I must set "chromeWebSecurity": false but I still get cors-related errors

It is a top-level navigation with location.href = '...' but the error seems to think it is an iframe

17 replies

image.png

cypress is supposed to auto-confirm js confirm("thing") dialogs, but it doesn't seem to work. it just hangs

could I be missing something?

ah, ok, so I actually meant prompt("enter string:"), which it seems cypress doesn't know about. I got it to work by overriding the function.

image.png

Hello guys, I am facing cypress hangs problem in electron after cy.window() command.

Hello, how can i interact with canvas elements like <canvas>?

If you mean the inner elements, that'll be a lot harder... Maybe you want to get into visual regression testing via plugins?

steeleligem1994.blogspot.com

Source: https://gitter.im/cypress-io/cypress?at=5de12831d64a052fb684f88c

0 Response to "Cypress He Automation Client Disconnected Cannot Continue Running Tests"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel