I'm using cypress to test my chrome extension, when i'm loading the extension into the browser it's open a url automatically, can i close the tab through cypress api?
The Cypress docs mention this in the trade-off section:
https://docs.cypress.io/guides/references/trade-offs.html#Permanent-trade-offs-1
Permanent trade-offs:
Cypress is not a general purpose automation tool.
Cypress commands run inside of a browser.
There will never be support for multiple browser tabs.
You cannot use Cypress to drive two browsers at the same time.
Each test is bound to a single origin.
Related
I am trying to scrape a website, but it is not loading in selenium. When I browse that website in my "real" chrome browser, everything works fine. Is there any way I can use my real browser with python to automate stuff, instead of using selenium??
Thanks
Using selenium we can automate real browsers.
If in case the website is not loading via selenium, you can check if adding desired capabilities helps.
Here we can set proxy, disable extensions etc. There are many options available.
https://chromedriver.chromium.org/capabilities
Also if you can share what kind of error is displayed that would be helpful.
How would one setup WDIO to run a scenario on a specific browser based on a cucumber tag. I think I can do it by closing the existing browser instance and then opening a new browser instance in a cucumber before scenario hook, but that is not efficient.
When you define your browser configuration, you can specify certain test to run in that browser only.
I want to use Sikuli with PhantomJS.Because web application which we are testing have so many http authenticate pop Ups. We are automating those pop ups by using Sikuli when we were using Selenium. But now we want to use PhantomJS because user is not able to do any other work while selenium web driver is performing testing on web application. Basically we don't want to block User for doing any other activity. So we are trying to use PhantomJS.
But as we know that PhantomJS is headless browser and Sikuli is image based testing tool . So can we use Sikuli With PhantomJS? If yes, then how can We use it? I know how to use Sikuli with PhantomJS Webdriver?
Thanks In Advance
No, you can't. As you stated PhantomJS is headless browser and Sikuli is image based testing tool, so there's no GUI to interact with.
Get some Virtual Machines and run tests on them, so no user is blocked.
SmartMeter saves huge time using the built in test recorder but it has a limitation where user has to use built in chromium browser.
May I know How to record business transaction using alternate browser (IE, Firefox) ?
Unfortunately, you cannot use Chromium plugin with a different browser. It is dependent on Chrome API. But you can always fallback to JMeter way. The HTTP(S) Test script recorder is still available in SmartMeter. There is also Smart Proxy Recorder, which extends the capabilities of HTTP(S) Test script recorder, but it still based on recording via proxy.
My web app uses IndexedDB and I'm testing on SauceLabs. Some months back my tests ran but now they block on a browser dialog that says "http://gbserver3.cs.unc.edu/" wants to: store files on this device", with an Allow button.
This is Win7 and Chrome or Firefox. Likely others too.
How can I dismiss or prevent this dialog?
Update: I have discovered that if I don't ask for quota I don't get the popup and my tests succeed. I'd still like to learn how to get rid of that dialog.
we are using Nightwatch.js in our project and we were facing the same issue.
What actually did the trick was using --unlimited-storage switch when launching the browser.
(List of other command line switches for Chromium can be found here)