WebdriverIO+Cucumber: VS code is not opening the BaseURL and test terminates right after browser launch - visual-studio-code

I am using webdriverIO+cucumber. NPM is installed (node v12.18.1) and seems everything in place but when I try to run any feature, it launches the browser (chrome) but doesnt open any/baseURL and closes the browser. No error in the terminal shown. Please help.
Thanks.

Related

How To Fix VSCode: Exception has occurred: ReferenceError: closeDescriptionPopup is not defined

Not sure how this problem specifically occurred. I've been doing some googling trying to narrow down what exactly is going wrong as my project was fine a few days ago. When i attempt to debug my VSCODE project i'm presented with this error.
this is a picture of my launch.json file:
Also, this an error if it helps displayed in the debug console.
Things i've tried so far,
Rebooting the computer
Uninstalling and Reinstalling VSCODE as well as disabling extensions
Creating a new VSCODE Project to attempt to debug
Deleting the launch.json file and creating a new one
just delete the launch.json file and it will work again
After spending some time debugging I solved this problem by simply installing npm packages, I executed command npm i
Just make sure that your npm packages are all installed and none is failing.
Hopefully this helps you or someone with the same issue.
I've solve this problem.
Remove the launch.json file and do not replace it.
Just try to build with F5 button.
Start Debugging from within VSCode
run npm start from a separate terminal and wait for the server to start
refresh the page in your browser
My intuition is that this would create 2 instances of the server binding to the same port and cause a bunch of problems. I'm not sure why, but in my case it worked as expected and let me debug with breakpoints normally.
You don’t need to use the VS Code run button with Live Server. You just right-click the HTML file in explorer and use the menu option “Open with Live Server”.

How to stop VS Code from opening browser

I'm running a local server on localhost through VS Code using nodemon on my mac. So everytime I save, the server restarts and updates. My problem is that VS Code always switches window to my browser when the server restarts, so my flow gets interrupted. There must be a way to prohibit VS Code from opening my browser, or at least not doing it at every restart of server?
Look into script your nodemon runs when it's watcher detects change and locate call that starts the browser there: presumably you have one in your "start server" script.
It would probably involve your local server address and call like require('child_process').exec(); see How to use nodejs to open default browser and navigate to a specific URL.
I kind of solved it by adding "BROWSER=none" so my start script (which otherwise only said "nodemon server.js"). But then the browser won't refresh automatically and I'm still curious what's causing it.

phaser on vscode launch

I've created a simple game using Phaser on vscode.
I read that i need to run it locally in order to run it on chrome and i can't manage to do so using vscode's F5.
when im on "index.html" and pressing F5 it pops out an alert box that says "cannot find progrem to debug".
pressing F5 while im on any other file causes a error in the debugger "window is not defined"(when im on phanser.js)/"Phaser is not defined"(when im on any other file)
how can i start this program correctlly ? sorry for the basic question .
http-server works just fine. But if you want to debug the game easily. You might want to follow the steps in this post: https://divillysausages.com/2015/06/09/using-phaser-with-visual-studio-code/
It is an instruction for setting up Typescript phaser development in vscode, but the steps that teach you how to set up node server also applies to a javascript usage case. If you want to make it easy to debug(pause code executing while game running, etc.) Try to set it up in that way.
Had to install http-server from npm and run it in terminal.
tried it before, but accidently installed it not globaly.
now it works. thanks!

How to start application without going back to LXDE?

I am running chromium browser at start up on raspberry, my question is after closing my chromium browser am trying to run another application without going back to desktop(LXDE).. am new user.. please help me out
I presume when you close chromium you go back to the shell.
Did you try to type the name of the program you want to launch?
Like the same way you launched chromium.
Try to type nano text_file or omxplayer video/audio_file

Mac eclipse xdebug firefox issue

I have worked with eclipse, firefox, and xdebug for months now on a linux-ubuntu machine. recently i moved to a mac 10.6 and set up all these programs and they all work fine until I try to run xdebug using firefox as the default browser in eclipse.
It will work, but the browser must be close other wise it will prompt a message saying
Close Firefox:
A copy of Firefox is already open. Only one copy of Firefox can be open at a time.
and when this happens I can not debug, I have to close the browser and start the debugger again. This becomes very annoying after a few tries.
If I use safari I do not have this issue, it just opens a new tab and I can debug with no problems. I can live with this set up, but I prefer to use FF. any idea why this is happening?
make sure firefox is set as your default browser on your mac and then in eclipse go to preferences->general->web browser and select use external browser and in the window below select default system browser.
This should launch stuff as a new tab in firefox.