I enjoy writing code. Besides that, I love traveling and exploring the nooks of nature. For me, traveling is like the feeling of the gentle breeze off the water, on a hot summer day.
Cypress does not and may never have multi-tab support for various reasons. Multiple tabs work against the way Cypress automates your application and they are inherently flaky and inconsistent - even if we did find a way to support them. You can look here to look at what Cypress has to say about it. Luckily there are lots of easy and safe workarounds that enable you to test the behavior of your application. This repo contains some examples for links opening new tabs.
Working with multiple tabs is flaky and inconsistent?
I don't think that is true.
Selenium can do that without any issue.
Browser tabs are browser tabs, they don't appear and disappear in a random way.
Even if your anchor element has the correct attributes, simply checking the existence and values of those attributes does not make up for the lack of an actual test.
That's just my opinion.
I noticed that all your articles are about Cypress.
Do you work for them or have they offered you any incentive to write positive things about them?
I think it's important that you should mention that.
I enjoy writing code. Besides that, I love traveling and exploring the nooks of nature. For me, traveling is like the feeling of the gentle breeze off the water, on a hot summer day.
If you're using Cypress as a test framework and you've managed to navigate to multiple tabs -- then the tests would surely go flaky and inconsistent because of Cypress architecture. I would highly recommend frameworks like Nightwatch, CodeceptJS, Behat, Behave which works together with selenium if you want to test multiple tabs web UI interactions.
P.S. I'm a QA developer and like to write about the tools I'm familiar with. 😊
Happy Coding!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cypress does not and may never have multi-tab support for various reasons. Multiple tabs work against the way Cypress automates your application and they are inherently flaky and inconsistent - even if we did find a way to support them. You can look here to look at what Cypress has to say about it. Luckily there are lots of easy and safe workarounds that enable you to test the behavior of your application. This repo contains some examples for links opening new tabs.
Working with multiple tabs is flaky and inconsistent?
I don't think that is true.
Selenium can do that without any issue.
Browser tabs are browser tabs, they don't appear and disappear in a random way.
Even if your anchor element has the correct attributes, simply checking the existence and values of those attributes does not make up for the lack of an actual test.
That's just my opinion.
I noticed that all your articles are about Cypress.
Do you work for them or have they offered you any incentive to write positive things about them?
I think it's important that you should mention that.
If you're using Cypress as a test framework and you've managed to navigate to multiple tabs -- then the tests would surely go flaky and inconsistent because of Cypress architecture. I would highly recommend frameworks like
Nightwatch
,CodeceptJS
,Behat
,Behave
which works together with selenium if you want to test multiple tabs web UI interactions.P.S. I'm a QA developer and like to write about the tools I'm familiar with. 😊
Happy Coding!