How to get process ID of chromedriver.exe started by intern - selenium-chromedriver

I want get process id of chromedriver.exe started by intern somewhere printed in Intern console log .. Is there any way to get it ?any code that needs to be added in intern.js ?
I am using intern 3.1.1
chrome 76
ChromeDriver 76.0.3809.25.

There isn't a great way to get Intern to display that information. Intern itself doesn't start or shutdown the chromedriver process -- that's managed by Selenium.

Related

Why is this bundleReleaseJsAndAssets failing when hermes is enabled on build.gradle?

I just cloned this repository and there is this error.
When I try to run ./gradlew installRelease or npx react-native run-android --variant=release, I get this error because of Hermes. Yes I enabled Hermes on my build.gradle. It works without hermes.
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
...
info Done writing sourcemap output
info Done writing bundle output
info Copying 13 asset files
info Done copying assets
> Task :app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> A problem occurred starting process 'command '../../node_modules/hermes-engine/osx-bin/hermes''
I am using macos.
I ran yarn add hermes-engine to make sure this node module exists. I have found many github issues but they are mostly talking about windows.
Just check if you are using windows and if your PC is just a year older, then u have to uninstall visual c++ 2019 redistributable, install visual c++ 2015 redistributable.
if u have linux, then no extra need.
I think this issue is happening because you might have done build 2-3 times.
So my advice is just do cd android & gradlew clean & gradlew assembleRelease.
Can u check your react native version? Hermes only works for react-native >= 0.60.4. Also some modules like react-native-firebase (if you are using in your project), are still not compatible with Hermes.Also if you are building app bundles instead apk, then make sure that react-native version should be 0.62 or more.

how to free a localhost port on mac

I have read the posts similar to this but to no avail.
I am in the midst of a comprehensive tutorial for Angular (5). I am on MacOs High Sierra 10.13.3. I am using Chrome Version 64.0.3282.140 (Official Build) (64-bit).
I just completed one project in the tutorial. I am now trying to complete the next project in the tutorial. The project is set to use the default port 4200 on localhost. All of the projects have executed this way.
I have performed my npm install. My npm start script is simple, = "ng serve". I enter npm start and it serves up the project as expected. I then go to my browser and enter the address localhost:4200. The previous project renders. I can't get the current project to render. These are the things I have tried to remedy the situation:
sudo lsof -i tcp:4200
changing the start script to ng serve --port 4300 and then using the address localhost:4300 (tried it with 5000 too)
Actually the first thing I did was look for an active activity on port 4200 in the Activity Monitor
Clear my Chrome browsing history
Restart my computer.
Tried the same process using Firefox as a browser
Tried it using Brave as a browser
In each and every case when I enter localhost:(anything) I get the previous project. Any ideas?
If I could delete this question I would. I discovered the problem.
I only THOUGHT I was pointing to the new project. In reality, I was pointing at the old project. THAT is why the same thing kept coming up and that is why nothing I tried would work.
I am embarrassed. Clearly, I am still a rookie. I hope no one spent any time on this.

OpenShift Pro - Start Build Not Working

I have two web apps running on OpenShift Pro, they have been running nicely for a couple of weeks but today I had to make a very small change and push the change to OpenShift. The push failed...
Upon investigation I have discovered that both apps have the same problem (which is strange).
The problem:-
On the Builds | AppName page there is a button labelled Start Build. Clicking this button just produces an error message alert:-
An error occurred while starting the build. Reason: Error resolving
ImageStreamTag jboss-webserver30-tomcat8-openshift:1.2 in namespace
openshift: unable to find latest tagged image
If I click on the latest build I go to the Builds | AppName | Build # page where there is a button labelled Rebuild. Clicking this button rebuilds successfully.
The real problem here is that this means that GitHub pushes fail to start a build, so development and changes are no longer possible...
Any ideas as to why Start Build no longer works?
I think it may be a problem at OpenShift as I have changed nothing recently...
Looking into what happened but you can update your build configuration to use tag 1.3 or latest instead of 1.2.

Visual Studio 2013 native cordova app build error

I just installed and repaired my VS2013 to build Native Cordova App. I have also installed the latest version of NodeJS but whenever I am trying to build the Application It gives me an error. I am uploading an image for more details on error as I believe image provide more info than text.
Posting error details if error is not clear in an image
Cannot find module 'q'.
The command ""C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaApp1" --language "en-US"" exited with code 8. C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets
I have advanced a little bit more but having hard time to run the application I have to manually installed all the required module. but now whenever I am running my project I get an error of web page is not available. please look at the attached image again.
I found that running npm install from within /vs-mda/ solved all my problems.
found the fix and that Involved manually loading packages like q via node js and in the end the fix for web page is not available was that ripple has changed and now we should not add it as an extension via chrome. it should be done via node js as well as below
npm install ripple -g
but before doing that delete it from chrome if you have got it otherwise just run the command.
Regards

Visual Studio 2012 JS/HTML5 Win 8 newly created project crashes

My project kept crashing after being swiped-down minimized with a code 1.
Debug Output:
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'. The
program '[7048] WWAHost.exe' has exited with code 1 (0x1).
I couldn't find any problematic function so as a test I created a brand new project and just built and ran it. It crashed with the same code perhaps 30 - 45 seconds after being swiped down.
I searched here, Google, and the MSDN and couldn't find any info.
Any pointers?
Thanks.
Swiping down is actually closing the app, not minimizing it, and Visual Studio is just telling you that the app's process was terminated (due to user/system command) with the exit status.
That message is expected behavior and no cause for concern, unless you also see a runtime error before that exit message.
BTW, you can debug suspend & terminate events from Visual Studio while the app is running via the Debug Locations toolbar or the Debug menu. In some cases, you might write code to react to being suspended/terminated (e.g. to save state/data). There's more on Windows Store app lifecycles if you're interested.
try go to your project folder / bin / and remove the debug folder and then run your project again.