Can we automate silverlight screens using watir? On the home page of watir, it's written that watir can automate any web application no matter what platform it is built on. But I read that it doesn't support applets or microsoft silverlight. Please help me regarding this. If we can automate silverlight screens, then please tell how?
No, watir can not automate anything inside browser plugin.
Content inside plugins such as Flash and Silverlight is not really exposed inside the DOM and so is difficult to test with Watir. However there are other tools you can use in combination with Watir such as Sikuli (use Jruby in that case to run watir, cucumber etc and use them in combination with Sikuli which is java based)
Related
I'm a Microsoft stack developer most familiar with Windows Forms and WPF, but have a need to develop a Linux desktop application that can display some web apps in a modern browser that offers very recent HTML 5, CSS 3, SVG, etc.
I'm thinking GtkSharp running on top of Mono is probably the replacement for WinForms/WPF running on top of .NET which will best leverage what I already know. As for the embedded browser control, I have other requirements strongly advocating CEF over any other solution (although I'm still open to strong suggestions to do otherwise).
Anyone have experience with any of this?
Try looking at CefGlue, it has a CefGlue.Demo.GtkSharp project which would indicate it's possible.
https://bitbucket.org/xilium/xilium.cefglue/
https://bitbucket.org/xilium/xilium.cefglue/issues/108/linux-support
Personally I've never used CefGlue so I cannot say more than I've seen in passing.
I want to provide an ability to create simple java and javafx applications to the users on my website. I've found excellent code editor (Ace) but I don't know how to provide FXML design tool to the Web users.
Is there any options?
ADD I want the users to use this interface builder without any additional requirements like Java 8 or something
How to host SceneBuilder in a web page (requires Java 8):
Build SceneBuilder from it's source.
Package it as a Browser Embedded Application.
Host your packaged application on the Internet and direct web users to its URL.
Other than using a fork of SceneBuilder for your project, I don't know of any other feasible way to provide visual FXML editing capabilities. I would certainly not recommend trying to create from scratch your own FXML visual editor written in either Java or JavaScript.
What is the difference between CodedUI and UISpy? Does both use same mechanism?
I need to implement support for UISPY in my own custom grid control[WinForms] to recognize each cell as like in the MS DataGridView. currently UISPY recognizes my entire control but not individual cell.
Any help would be highly appreciated
I'm not sure how UISpy works but CodedUI uses the UI Automation framework to access the UI components in an app.
Regardless, you might want to look at using something like HawkEye or WinForms Spy as a starting point for doing what you need.
The UI Spy tool is obsolete and no longer available. Developers should use other tools such as Inspect.exe that are available in the Windows Software Development Kit (SDK).
anybody can recommend a good web editor to me?
page created in windows should be working ok in linux as long as firefox support it, right?
1.) Here you have a list with 10 free web editors for windows:
http://webdesign.about.com/od/windowshtmleditors/tp/free-windows-editors.htm
(the first one komodo it's pretty good at least the mac version I use)
Link
2.) OS and browser doesn't matter with HTML as long as you write (W3C compliant code).
In case of CSS & JavaScript some functions have different behaviors depending on the browser.
Notepad++
Firefox isn't the only browser used on Linux (I'm currently using Chrome). Fonts are something to look out for on Linux, so it's always worth testing.
I use the Telerik editor. It is not cheap, but it is very good. My users like it.
I am assuming you mean a content editor for use on your site.
I've used TextPad in the past. I also like Eclipse.
Are you looking for an editor with Syntax Highlighting then TextPad, KomodoEdit, NotePad++ are good.
Aptana Studio is also free and also provides Intellisense for HTML and Javascript editing.
If your page is W3C compliant, then it should be rendered well in any standard browser. Don't forget your DOCTYPE declaration.
The most suitable web editor depends on what technologies you are using.
If you are using ASP .NET, then you should use Visual Studio.
For Java (JSP), Eclipse is what you want.
If you are asking about a more general web editor (html/javascript) and you are more likely to be using php or Ruby, you really need to give a try to : PSPad. I have been using it for months, and it has a lot of cool features: from basic code editing to code verification etc. And yes, it's free! You can even add to it a lot of extensions.
For interoperability between navigators, you have to test your website on many of them as you can, be careful with Internet Explorer especially, here you can find some known CSS bugs that you may encoutner while running your pages on IE.
Alors I recommand you to use special tools that can do cross-navigator testing for you, like Browsershots.
It's not quite a "programming" question, but I hope its related closely enough.
Do you know if it is possible to configure the browser in Linux (e.g. Firefox) to use Wine to create ActiveX objects? I would like to handle web pages that use:
var xmlDocument = new ActiveXObject( Msxml2.DOMDocument.4.0 )
etc. in Javascript.
I think you can only do that in Internet Explorer on Wine
ActiveXObject is part of the Windows Script host, and not available in Linux unless you can use Wine to install it.
As a side issue, the actual ActiveXObject is an instance of a windows application, and not generally available in Linux (especially not the MS Office suite).
Links:
Windows Scripting Host
Wine
Edit: Had Wine confused with Mono. Fixed now.
If you just want an xml document you can do that via standard javascript. Their is no need for ActiveX. Simply ask the document to parse the xml for you. Have a look on Mozilla Developers Centre. They have very good JS docs.
On another note, if you want cross browser web pages steer clear of ActiveX. Especailly with all its security holes.
you can see flash in firefox of linux. try used flash.