Is WebStorm console different to native OS X console? - macos

When I am running my e2e tests in WebStorm console its all fine, no fails etc. but when I try to run them in mac Terminal its failing.
Currently I am using framework based on Protractor. When tests are running on system console all animations are like z-index is like 100 and rest of elements are under it, so WebDriver Protractor is unable to click them.
Any clues?
I checked printenv but it seems to be the same.

Related

OSX running app acts differently from running on terminal

I have written an app for OSX (Sierra) in Go (lang) with the GUI powered by the Golang QT binding therecipe/qt. When I build the app and run it from the command prompt with command open $(pwd)/myapp.app I get a terminal output while its running, and everything works fine.
When I double click on the app in finder to run it, I obviously don't have access to the console to see debugging, but in parts of the app that work fine in the GUI when I run from console (clicking on things, etc), it crashes the app when run by clicking on it.
I realise people don't know what the app is, and without seeing where in the app it crashes, they can't help me. What I am after is some ideas about debugging it, for instance:
Outputting logs to a text file and tailing the text file to watch as it is written to
Connecting a debugger to the application by the process, perhaps I can discover where it crashes. This doesn't sound straight forward
Is there a way to attach to a console of an application run like this to see what it is outputting?
Any ideas appreciated.
Thanks

Run geb tests with firefoxDriver without opening the browser

I want to run my Geb specs with firefox driver without opening the browser? can this be done?
Depends on where you are running your tests and what you are trying to achieve.
- If you are running in a *nix system you could use xvfb. It supports both the firefox and chrome drivers which is useful because you want to see your tests fail at the same places it would in an open browser.
- Phantom JS - I personally have used this for our web applications and have found it pretty easy to set up and configure. Mind you this runs on top of WebKit that both Safari and Chrome use to render web pages.
- HtmlUnit - Again built on top a custom Rhino Javascript Engine so you may see different results when running headless and in your browser.
Using your GebConfig.groovy you can configure something like this:
environments {
'headless-ff' {
driver = {
pdriver = new PhantomJSDriver(new DesiredCapabilities())
pdriver.manage().window().maximize()
pdriver
}
}
}

Why does firefox open when I run tests instead of the default browser chromium?

I have chromium set as my default browser. Every time I run rspec and capybara my firefox browser opens. I prefer to use chrome/chromium for development and personal use, so how do I get chromium to start opening when I run tests?
You should use chrome driver for capybara. Please have a look at this answer:
https://stackoverflow.com/a/7512626/582792

Selenium-webdriver Firefox issue windows 7

I am running Selenium Webdriver locally on my windows home server (windows 7 professional actually) which logs to a site and sends some emails. It's a java program with a single thread running.
I can see Firefox opening up just fine when running through Eclipse and follow the clicks etc as it logs on without problems.
I have set up a Task Scheduler task to start it up every morning though and run the jar. The program runs fine but when Firefox opens it is almost invisible, I can see the grey frames of it but everything else is transparent and invisible and if you drag something in front of it the graphics get stuck.
When clicking on Properties on Task manager I can see that it started with firefox.exe - foreground whereas when I open Firefox normally it says -browser.
The program still does what it should do, it's just Firefox is not visible at all when running through java -jar X.jar etc.
Any ideas why?
Windows 7 Professional
WebDriver 2.32
Firefox 21
I suspect it has something to do with the anonymous Firefox Profiles created each time firefox runs. I usually delete them from Temp once a week.
P.S No idea if it matters but server is headless and I am accessing it through TeamViewer.
Issue solved by deleting firefox profiles and loading from scratch. Weird, not sure yet what caused this and if it happens again.
Perhaps I will create a specific firefox profile and use instead of a anonymous one created each time.

Selenium doesnt see my test suite

I've created a test suite in selenium IDE using the example code from the website and when I right click and attempt to load the suite it tells me the test is empty. This is on latest stable ff for mac and selenium 1.07
It turns out that the open Test suite is under the menubar and the menubar title says firefox so I was confused. Had only used selenium on linux before. Found the openTestSuite and it worked like a charm now

Resources