I want to write ie based web developer tool with find element feature. i am using c# and wpf and my application should looks like ie developer tool:
or firebug:
Any suggestion?
To consolidate a bunch of answers:
You can either:
Host IE in your app
Make an IE plugin
To highlight an area, you should look at http://www.codeproject.com/KB/dotnet/NetHtmlEventHandler.aspx
Related
I'm trying to use Coded UI Test (Visual C#) to test a Java client application and I am quite new to this.
Currently I have built enough to enter the set client which is built in Java. My problem is that it seems that I cannot use the UIMap Coded UI Test Builder to select any buttons within the application. When using the Assertions it selects the entire window instead of single buttons within the GUI.
I would rather code to reach my solution than using the UIMap recorder but unfortunately I cannot seem to find what I'm looking for.
I have searched long and far for a way to do this, and cannot find anything relevant, so please help!
You can use tools like Sikuli...open source image recongition or EggPlant (not free).
We actually integrated sikuli in VS there is a library called SikuliIntegrator (SikuliModule.dll)
Or try anther tool like QTP or other open source to see if they can capture the controls better.
If the Java application you are testing is built by you or your team, you may ask them to change the architecture such that CodedUI could grab the controls...
I need to surf on a web page using a C# window application (with a browser tool on it), and collect information for my data mining project. I need a tool that help me invoke events like click and refer to objects with a jQuery or css selectors like syntax to read them and save in database.
I try watin but that is just for testing my own web application.
You might want to try Selenium...
We use it for automated Regression Testing
http://seleniumhq.org/
We sometimes use Selenium for web scraping.
I'm building a C# desktop app with a simple UI. Due to my familiarity with HTML/CSS, and a previous web-based iteration of a very similar app, it would be ideal if I could re-use some existing HTML/CSS pages I have as the UI for this new desktop app.
Is that do-able with C#? Can anyone show a simple example of using an HTML/CSS page as the UI of a C# desktop application?
Other answers are dated, new good options:
Electron + Electron-Edge - is the way to go for a new Electron app that communicates to a .NET backend (a DLL). Widely used and supported.
Neutronium - best for already-written .NET WPF apps that need a HTML UI. Requires using Vue. Less popular and less supported.
CefSharp (https://github.com/cefsharp/CefSharp) is a good way to embed chromium, but you still need a web server. Take a look at http://www.ultidev.com/products/Cassini/ to alternative for IIS.
You can use WebBrowser control to add Web browser functionality to your application.
You can create your own html(s) and set your WebBrowser control to display those pages. You can navigate by clicking hyperlinks or by using keyboard shortcuts to move backward and forward through navigation history. By default, you can access additional browser functionality through the right-click shortcut menu
You can even manage those pages centrally (for e.g. on LAN) and all clients on LAN can connect to this central location. This way you can modify pages centrally.
Check a walkthrough on MSDN:
How to: Add Web Browser Capabilities to a Windows Forms Application
You can try to use a Chromium-based control - DotNetBrowser. This control provides wide interactivity options, like DOM manipulation and DOM events, which can be useful in your case.
In addition, there is an article that demonstrates how to use a web page as HTML UI in a C# desktop application: https://www.infoq.com/articles/html-desktop-net
Affiliation disclosure: I work with the team, which created DotNetBrowser.
You could try adding a Web Browser control to a forms application to show your page. But this will need to be remotely hosted as the code will not be able to execute locally, except if you listen for the specific links in c# and then perform the actions.
You could also try your hand at WPF which is a new technology to create good looking gui's with mark-up much like html, which you'll pick up pretty quickly with your html experience.
Unfortunately neither WinForms or WPF is sufficiently like HTML/CSS to be of that kind of use. You'll be able to reuse the layout-concepts and art of course. And, with WPF being the closest thing to it, you might even keep a lot of the code-behind code.
But the short answer is: No
How would I go about creating a desktop application that would be capable of generating an ASP.NET master page, perhaps using drag and drop for the different allowed elements (image, text, video). I would take the co-ordinates and generate a master page that can be used later.
Any ideas would be great, I know the question is a bit strange and vague.
Well this is very strange of you to do this as there are already many tools to go about doing this.
Visual Studio (is itself Self Sufficient)
Expression Blend (if you need more control over Design)
Try them.
Still if you are keen about developing something that suits you custom needs then sure go ahead.
As the master page is similar to HTML DOM you can create tags and attributes according to the user's choice.
I suggest you take idea from Visual Studio Designer itself and develop something similar with room for your custom implementations. That way you customer's wouldn't have difficulty in switching to your Application.
As for HTML editing there are Various classes like HTML Element which you can use to create the DOM. Also try out some tools like HTML Agility Pack. Also search for some plug-ins that you can use for making things like HTML Editor. Some has been suggested in Jacob's answer.
It's unclear what you're looking for in an answer. There are several pieces to such a project. Here's what you'd have to create:
A text editor
An ASP.NET parser so that you can do syntax highlighting or WYSIWYG display
An assembly loader so you can detect which items to put in your toolbox
A drag & drop interface
An ASP.NET compiler so that you can test your work in a browser
You may want to look at existing frameworks as a starting point. Eclipse is an engine for building products like yours, so you could base your project in that framework. Scintilla is a popular library for writing text editors with syntax highlighting.
Is there a way to have a Windows Explorer on WPF? The closes I can get is the Web Browser, but it's not really what I need.
Please assist.
Thanks
Check these out -
http://www.codeproject.com/KB/WPF/WPF_Explorer_Tree.aspx
and
http://gargmanoj.wordpress.com/2009/03/27/wpf-101-a-simple-windows-explorer-like-directory-browser/
JAM Software recently released a WPF edition of their ShellBrowser controls. They contain a wrapped Windows Explorer as well as custom built tree and list controls. Also included is a preview control similar to the one in the Windows Explorer on the right. Full disclosure: I am one of the developers of ShellBrowser.
Check out the explorer browser control in the Windows API Code Pack. Compatible with Vista and 7, I believe.
I have written a WinForms library that might help. It's not WPF but you can host it in a WPF application.
You can find the library at: http://gong-shell.sourceforge.net/
You can also check this out. It's fresh to the market and you'll need to pay, but it was designed to be identical in every way to the Windows Explorer Chrome:
http://www.teraque.com/products/explorer-chrome-suite/
The controls you get for free from WPF look like crap. They are only meant to get developers started.