Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?
Eclipse HTML Editor Plugin
I too have struggled with this totally obvious question. It seemed crazy that this wasn't an extremely easy-to-find feature with all the web development happening in Eclipse these days.
I was very turned off by Aptana because of how bloated it is, and the fact that it starts up a local web server (by default on port 8000) everytime you start Eclipse and you can't disable this functionality. Adobe's port of JSEclipse is now a 400Mb plugin, which is equally insane.
However, I just found a super-lightweight JavaScript editor called Eclipse HTML Editor Plugin, made by Amateras, which was exactly what I was looking for.
Disclaimer, I work at Aptana. I would point out there are some nice features for JS that you might not get so easily elsewhere. One is plugin-level integration of JS libraries that provide CodeAssist, samples, snippets and easy inclusion of the libraries files into your project; we provide the plugins for many of the more commonly used libraries, including YUI, jQuery, Prototype, dojo and EXT JS.
Second, we have a server-side JavaScript engine called Jaxer that not only lets you run any of your JS code on the server but adds file, database and networking functionality so that you don't have to use a scripting language but can write the entire app in JS.
Try the Vjet Javascript IDE from ebay (installation)
Ganymede's version of WTP includes a revamped Javascript editor that's worth a try. The key version numbers are Eclipse 3.4 and WTP 3.0. See http://live.eclipse.org/node/569
There once existed a plugin called JSEclipse that Adobe has subsequently sucked up and killed by making it available only by purchasing and installing FlexBuilder 3 (please someone prove me wrong). I found it to worked excellent but have since lost it since "upgrading" from Eclipse 3.4 to 3.4.1.
The feature I liked most was Content Outline.
In the Outline window of your Eclipse
Screen, JSEclipse lists all classes in
the currently opened file. It provides
an overview of the class hierarchy and
also method and property names. The
outline makes heavy use of the code
completion engine to find out more
about how the code is structured. By
clicking on the function entry in the
list the cursor will be taken to the
function declaration helping you
navigate faster in long files with
lots of class and method definitions
The new release of Eclipse (Helios) has an especific package for javascript web development. I haven't tried it yet, but it certainly worth a look.
Didn't use eclipse for a while, but there are ATF and Aptana.
Oracle Workshop for WebLogic (formally BEA Workshop) has excellent support for JavaScript and for visually editing HTMLs. It support many servers, not only WebLogic, including Tomcat, JBoss, Resin, Jetty, and WebSphere.
It recently became free, check out my post about it. Given that it was an expensive product not long ago, I guess it's worth checking out.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 11 months ago.
Improve this question
I have been studying Cypress testing tool. I have huge front end flow to test . Writing so much JS code will be tough .
So i want to know if there is a code generator that records/generates code tests.
I know a tool Snaptest - snaptest.io . However this tool generates code in NightWatchJS and Chromeless only . the Cypress framework is disabled .
i found this - https://github.com/cypress-io/generator-node-cypress
But i am not sure what this does .
So i want to know if there is any alternate recorder/generator for generating code to use in Cypress .
Suggestions ? Thanks .
Yes, it looks like there is a good attempt to create a scenario recorder and it works to a great extent:
https://chrome.google.com/webstore/detail/cypress-scenario-recorder/fmpgoobcionmfneadjapdabmjfkmfekb/related?hl=en
2021 Update
There have been generators available for a while that the other answers mention. I originally answered this in August 2018, at which time there were no generators available. I still stand by my advice below.
Original answer
To answer your question:
No
To provide you unsolicited advice:
Testing a huge flow throughout your front end is an anti-pattern in Cypress. They (and I) recommend breaking that up into a spec for each page, then only add small tests to that spec for the actions that you perform on that page. You will also want to mock, stub, or otherwise programmatically set up and tear down the required state for that spec to run.
See this page and watch the linked YouTube video to get a better idea. https://docs.cypress.io/guides/references/best-practices.html#Organizing-Tests-Logging-In-Controlling-State
I have a long history of using selenium with page objects and workflows. I fought this idea for a while when I started using Cypress but have drank the kool-aid and find it is MUCH better this way.
There is a built-in recorder inside the Cypress Support Pro plugin for IntelliJ platform (IDEA, Webstorm etc.)
It allows recording UI action inside the Cypress Runner and insert the generated code directly to your case in IDE.
Also, recorder has pluggable architecture that make it easy to extend or replace code-generation logic. By default, it uses the scripts from KabaLabs / Cypress-Recorder.
Here is a brief video overview of recorder: https://www.youtube.com/watch?v=FgnHYwmguFI
You can try plugin for free here: https://plugins.jetbrains.com/plugin/13987-cypress-support-pro (or just install it via settings -> plugins menu in IDE)
Self-promotion disclosure: I'm the author of this paid plugin.
There is a new Cypress Recorder extension (different from the one posted above) that we have created that we feel may be closer to what you are asking for than the previously posted one above.
https://chrome.google.com/webstore/detail/cypress-recorder/glcapdcacdfkokcmicllhcjigeodacab
Please feel free to let us know what you think.
According to this issue on Github, a test recorder has been proposed but is not currently a feature in Cypress.
"Cypress Studio provides a visual way to generate tests within the Test Runner, by recording interactions against the application under test."
https://docs.cypress.io/guides/core-concepts/cypress-studio
I know it's a little late but.
I just saw Preflight's Cypress recorder and it works like a magic creates perfect css selectors and adapts to ui changes (updates the script automatically), it even creates email testing scripts automatically.
https://cypress.preflight.com
In my personal opinion it's way better than Katalon
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need a javascript library to crawl a web application. I found this https://github.com/riccardo-forina/status-jquery-crawler but as the author claims , this is in early stage of development. I could not find anything after a lot of googling
Thanks for any inputs
Javascript has many utilities you can use.
The biggest question when choosing your tool is, "does my site use Javascript to load the content I want?". For example, Google's search page is almost all contained in the HTML they send in response to an HTTP GET request.
Other sites may load comments, notifications, or pictures that aren't contained in the HTML initially using Javascript. This means that if you just said, give me the HTML for Site A, the page you'd get back wouldn't be missing much of the content you wanted.
Static Sites
For most sites where what you want is in the HTML, there are some excellent node.js scraping libraries at your disposal:
x-ray - a neat package that bundles up cheerio inside a declarative scrape object. Provides some simple structure with which to build robust scrapes.
cheerio + request - this is a popular combination, using cheerio to parse the HTML and request to get it for you. You'll find lots of resources explaining the basics of requesting web-pages, extracting the HTML, and even adding authentication and maintaining sessions where required using these tools.
artoo.js - in browser scraping utility. Extremely useful for prototyping, and one-off scrapes. You can add it as a bookmarklet and run it in your browser developer's console. It allows jQuery like selectors and has some basic following logic.
Dynamic Sites
If you need a browser like environment to get content from your site, you'll want to check out headless web browsing and drivers in node.js. PhantomJS is the most popular, but there are many others. Be warned - to use PhantomJS with other Javascript libraries you'll need to find a node.js driver:
Nightmare - a node library that talks to PhantomJS and simplifies basic web-page workflow and scraping.
SpookyJS - a node library for CasperJS, a tool built on top of PhantomJS that is also a separate package.
PhantomJS-Node - the most popular PhantomJS driver for node.
(Sorry for the lack of links - I don't have enough reputation to post more than 2 right now)
PhantomJs is one of the Javascript based headless webkit, so you could use it for crawling. There is something new wrapper came up on top PhantomJS called Nightmare Js http://www.nightmarejs.org/.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
As a .NET/XAML developer I am wondering if anybody has started to write a framework which will replace Silverlight and Flex using technologies like TypeScript and XAML to produce HTML5, JavaScript and CSS cross platform desktop apps or RIA's.
If not, wouldn't it be great to have a framework which understands XAML (or just XML) to define the user interface and JavaScript or better TypeScript to code the view controller?
I know, Sencha has done a great job building a JavaScript framework called EXT JS to build rich internet- or desktop applications, but from a .NET developer perspective EXT JS sucks.
A .NET developer likes to design the UI's using tools like Blend or Visual Studio with the ability to hack code in XAML and not in JSON.
There is also a good approach called Zebra which renders completely inside an html-canvas, but it isn't XAML based and there is no ability to use themes at all.
Also jQuery UI and jQuery Mobile are great frameworks from an HTML developer perspective, but I am looking for a XAML based framework, because you have to code less in XAML than in HTML. There is also the ability to use Blend to design the UI.
I have asked myself this question months ago when Adobe gave away Flex and Microsoft didn't admit to extend Silverlight 5 and I answered it with:
Microsoft or Adobe should do this for us.
But today I think now it is up to us.
Depending on your feedback I would like to start such a framework as an open source project, but I hope that there is still one on the way^^
You don't really need XAML to write an HTML application as XAML is really just another kind of mark-up.
From your WPF/Silverlight experience, you will find that the following concepts were actually borrowed from HTML anyway:
XAML is mark-up for content, which is what HTML is
Resources are styles and behaviours, which is what CSS is
Some parts actually don't map directly, some of the triggers in your WPF program may be either CSS or JavaScript in a web application, for example. Also, in HTML attributes are used less than I have seen them used in WPF - normally all sizes and layouts are placed in CSS, not attributes in the mark-up.
You may not directly have a substitute for every available WPF control, but you will find that most things are possible.
Although there will be a learning curve involved in picking up HTML, CSS and JavaScript if you haven't used them extensively, they are useful tools in your tool-belt.
Correct me if I am wrong, but I believe you are looking for http://fayde.wsick.com. I am in the midst of rebuilding the framework in Typescript. Check out my blog at http://faydeproject.blogspot.com/.
there is also rAppid:Js http://www.rappidjs.com which is XAML based, but it's not made to work with Visual Studio or Expression blend.
A XAML framework for HTML/JS is a fantastic idea, XAML files could be converted in HTML5 or perhaps in JavaScript directly by having an InitializeComponents() method where all objects are instantiated (like in WinForms).
If you decide to start a such project, consider using a C# to JavaScript compiler like Saltarelle or Script#.
Search the Web for
"M&P H5J is Silverlight in HTML5"
it implements an XAML processor in TypeScript.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have read this two posts:
What are alternatives to ExtJS?
free and open source alternative to extjs
Is there any freeware Ui designer for any of there frameworks?
I want to build a web file-browser
In general, you might check out this post:
HTML/JavaScript UI widgets GUI builder
Consider while looking at different tools that some might require special server back-ends. qooxdoo as a toolkit is all client-side.
The rest of this post concerns only qooxdoo and I don't think there are any mature ones available for qooxdoo right now. At least, there are none that are on par with the likes of the experience of developing in Visual Studio and with WinForms (as simply a comparison.) There are some early immature tool attempts at doing similar things, but they still will require a good understanding of qooxdoo and form placement. This is not a complete list:
qooxit: This is a project by Derrell Lipman who is very active as part of the qooxdoo development, but I'm not sure what has become of the future of this project. http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/qooxit/
jsqt: Uses Qt's .ui files and translates them. I have not used this and my guess is it has many limitations. http://qooxdoo.org/contrib/project#jsqt
Qooxdoo.Net: Uses Visual Studio to design the UI, but the project looks dead. http://sourceforge.net/projects/qooxdoonet/
I think there were also some attempts to put a WYSIWYG designer in front of the XML to qooxdoo tool called QxTransformer, http://qxtransformer.org/ but I may be confusing my projects.
Note that the qooxdoo license is dual licensed to LGPL/EPL. If you are working in a commercial environment some corporations are skittish of anything that isn't MIT or BSD licensed. I mention this in regard to your reference to the "free and open source" alternatives. While I firmly believe the intention of the application of LGPL/EPL is to allow us developers to do whatever we want with our creation as long as we contribute back to any enhancements to the qooxdoo libraries, corporate lawyers are afraid of nothing specific in writing. If you are doing this for commercial organization do your homework first. I had wanted to use qooxdoo for a project, but was prevented because of the license and my companies leaning toward MIT/BSD only open source licenses.
As a library goes, I think qooxdoo is the most feature complete and best structured. It is well documented though it does come with a learning curve. However, examples abound and the forum is very responsive. If there is any criticism about qooxdoo it might be that it is a heavier weight (size) library so that the final compiled javascript is often large (500-700k). For complex applications it can be a bit too intensive for smart phones and first generation iPads. However, nowadays this becomes less and less an issue and the mobile side of qooxdoo is evolving rapidly to provide a lighter weight solution. Basically, it keeps getting better and better.
Finally, here is a link to a discussion amongst qooxdoo developers about creating an IDE.
http://qooxdoo.678.n2.nabble.com/qooxdoo-quot-IDE-quot-Request-for-Comments-td3782909.html
From experience I think manual (text editing) form design is tedious and error prone and a tool to make it easier would be a godsend. qooxdoo's structure and "extends" capability would make it a prime candidate for a IDE implementation like Visual Studio uses with WinForms and .NET.
Before switching to Ext, we used the Yahoo libraries. We were using the old version YUI2, but version 3 is apparently also very good. It has many similar components such as grids (datatables) , menus, calendar widgets, etc.
http://developer.yahoo.com/yui/2/
http://developer.yahoo.com/yui/
Sencha Architect is a very nice product.
The DHTMLX library comes with a free online UI designer tool.
The library itself is dual licensed: GPL and commercial. The commercial license includes the desktop version of the UI designer.
There is also file explorer demo built with the dhtmlx components.
(Disclaimer: I work for DHTMLX).
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Just a quick query ...
I would like to ask people's opinions as to which language is most similar to javascript? I don't program for a living, but I have been learning javascript in my spare time. I would now like to have a shot at making a desktop application, and I think it would help to choose one which is most similar, if at all possible, to javascript?
e.g. python, ruby, C#, visual basic ... I have no idea and haven't had much luck googling this
Thanks
Matt
Why not use Javascript? Who says it can be used only for "online" programs?
There's a Windows Script Host on Windows that allows you to run Javascript programs from the command line or double-clicking in Explorer.
Other OS's have similar script engines.
It depends on what you mean by "similar". Syntactically, JavaScript is part of the syntax tradition derived from the B programming language (C, C++, Java, and C# are others in this syntactic tradition). But that's just syntax. JavaScript isn't much like those (although both C# and, to a lesser extent Java, are getting more and more "functional" features added to them). If you're writing for Windows, you might take a good look at C# (and a subset of it is supported on Linux, in the form of the excellent Mono project).
You might look at JScript.Net, which is a language for the .Net platform that's, well, I'll say inspired by JavaScript. Again, that's a bit Windows-ish although (again) Mono provides a good layer for Linux.
Visual Basic (.Net or otherwise) will not be a good fit. Fairly easy syntax (BASIC was designed for easy syntax), but not very much like JavaScript.
If you don't mind a syntactic departure, both Ruby and Python are dynamic languages like JavaScript, and both are fairly popular these days for desktop apps (at least on Linux).
You certainly could use JavaScript if you want to. Someone else mentioned Adobe AIR, but I'll throw out another one: Rhino, which is JavaScript for Java. That gives you access to the huge collection of Java libraries out there (as the JavaScript code can interact with Java code and vice-versa). Whether you want to do a desktop app using Java technology (even though writing JavaScript) is obviously going to be up to you.
For command-line apps, you can use V8 directly, or NodeJS which uses V8 but has a lot more (and on Windows, JScript with Windows Scripting Host).
You can use Adobe Air to run Javascript + HTML + CSS.
Although JavaScript can be used offline, I wouldn't use it unless I had to. The choice of language depends on what you want to write. If you want to write GUI applications for Windows, C# is a much better choice. If you want to write scripts for data analysis etc, there are good languages for that, like python.
If you're looking to create Desktop applications with little-to-no experience, it may be better going for an Express edition of Visual Studio, which comes in Visual Basic, C# and other flavours. You can create both desktop and web applications for free.
C#, C++, Java and JavaScript share a lot of syntactically similar language features; braces etc. You'll hopefully find once you get used to the syntax is easier to transition to another language too.
Believe it or not, but one language that is very similiar to Javascript (although not syntactically) is Scheme. Take a look at this article by Douglas Crockford. It might not provide you out of the box tools for making fancy desktop applications, but it is a good language for learning important programming idioms.
And let's not forget JScript.NET!
(even if everybody else did).
Edit - another option for the .NET and Mono frameworks (and somewhat unknown to standard, non-game programmers) is UnityScript (but I don't even know if you may use it outside of the Unity 3 development environment). Seems to be JavaScript with classes and inferred static typing (maybe similar to ActionScript).
Thank you for all the extensive replies. Sorry I was not able to check back sooner.
So as a sort of conclusion it was wrong of me to assume I cannot make desktop apps using javascript. Actually, shortly after posting my original question I stumbled across AIR myself. However, and correct me if I wrong, it all seems a bit "bloated" (hot air ?). To deploy it on some other maching it will require AIR to already be installed? Indeed, it would download as a .air file, and I don't think there is a way to make an executable. Some other, more knowledgable people also listed many of its limitations on another site.
I also investigated Rhino (thank you Crowder). However I could not find much of an explanation on the Mozilla site of how I could use it by just scripting in javascript? The example they offer for download was full of java code ! ?
Anyway, it seems at least that it is possible to make a .exe which can run in the console for, say, simple number crunching. I will have a go at this. I suspect that things will get more tricky if I want to make some sort of GUI.
Thanks again for all the excellent replies
Matt