automation

Web Automation Using MSHTML

We want to automate a web application which is developed in asp.net. For automating this site we are planning to use the MSHTML. But before finalizing MSHTML I would like to know if there are any known limitations of MSHTML or please share list of controls which we may not be able to automate using MSHTML. Please share your experiences ...

Word VBA: How to know if the actual save operation is completed?

I am having a problem with the Document.SaveAs method in Word VBA with large Word documents, it seems that the save operation is asynchronous, ie. after calling .SaveAs it returns immediately, but with large Word documents the actual save operation may not has been completed and it's in progress in another thread. So what I want to ask...

Automation of Downloads in Web Browsers

What is the reason for automating download links in websites? It could have the benefit of sparing the user a click, except that the browser always blocks it (you have to click on the yellow bar that appears at the top of the browser). That's harder than just clicking on the link that says, "If your download doesn't start automatical...

In MSTest, How can I verify exact error message using [ExpectedException(typeof(ApplicationException))]

using MS Test how can verify the exact error message coming from a test method. I know [ExpectedException(typeof(ApplicationException), error msg)] doesn't compare the error message coming from my test method, though in other unit test framework it is doing. One way to solve this problem is to write my uni test using some try catch bloc...

How do I create and send appointments to Microsoft Outlook calender?

I am trying to create an appointment in the Microsoft Outlook (2003) calender of another person using the below code.While running this program, The Appointment is getting saved in my calender.But not being sent to the recipient. try { Microsoft.Office.Interop.Outlook.Application app = null; Microsoft.Office.Interop.Outlook.Appo...

How to detect an image border programmatically?

I'm searching for a program which detects the border of a image, for example I have a square and the program detects the X/Y-Coords Example: ...

How can I unlock the screen programmatically in Android?

I am working on a remote automated test framework for Android based on JUnit (tests run outside android, interacting with code inside it). It's all working fairly well, but one issue I have is that when I automatically start a fresh emulator, the screen starts out locked. This appears to affect my tests being able to run, plus, I want to...

Call Excel COM Addins functions using macro

How can I call a function defined in a COM Addin using excel macro ? Basically I have created a Excel COM Addin which does some bunch of stuff. Now I want to invoke this via excel macros. Is it possible to do it ? Or Is it possible to install COM Addin using a macro ? ...

Start and capture GUI's output from same Python script and transfer variables?

Hi, I have to start a GUI from an existing Python application. The GUI is actually separate Python GUI that can run alone. Right now, I am starting the GUI using something like: res=Popen(['c:\python26\pythonw.exe', full_filename, str(RESULTs), str(context)], stdout=PI...

Get Browser's Current HTML From Another App

Hi! I'm trying to build an application that reads - and preferably detects the changing of (through an event or smthg like) - the browser current HTML. My main purpose is to build some kind of feature that enables single sign-on to some pages, so I'd need to know every time a page has completed loading to check the HTML and set some fi...

Is it possible to talk to the iPhone simulator/device.

I need to automate the build/deploy process for my iphone applications from a script. I can use xcodebuild to build the project, then use Applescript to deploy and debug/run the application. Assuming the application will stop by itself after a while, I need to collect the generated logs for verification. But the problem is I have no way ...

Scripting Automation within VB.NET application

The software company I work for offers data conversion as a service for new clients who have previously used other similar software. I've written a VB.NET application to automate common conversion operations, and have separate logic between known vendors. A particular file layout has become rather common, but due to the nature of how t...

Execution time benchmarks for web automation

Are there any automation execution time related industry standards/benchmarks are available for performing different actions on web page. Like through automation; how much time can be considered as acceptable time for setting value to text box (like 1 sec for 20characters) or what range of time will be considered as acceptable for click...

Converting Word doc to tiff

I run Word 2003 in unattended process to convert a word doc file into a tiff. Word is configured to print to Microsoft Office Document Image driver and then pick up the generated file. It works fine on a 32 bit OS. Now we need to migrate this app on a 64 bit OS and it looks like there is no such driver in the Office 2003 installation on...

How should I create an automated deployment script?

I need to create some way to get a local WAR file deployed on a linux server. What I have been doing until now is the following process: Upload WAR using WinSCP. SSH into server using Putty. Move/Rename/Delete certain files folders to prepare for WAR explosion. Explode WAR. Send email notifying users of restart. Stop tomcat server. Us...

(Tcl/Expect) clear screen after exit

I want to clear the screen (on the local machine) after exiting from my (semi) interactive expect script. Can I do that from within the script? Here's what I tried, that failed. #!/usr/bin/expect -f set env(TERM) vt100 spawn ssh -Y username@domain set user username set pass password #login sequence expect "password: " send "${pass}\r"...

Expect - get variable from screen region based on row and column

I'm auto-interacting with an SSH session and an ERP program using Expect. Rather than relying on a regular expression to capture a variable in my expect script would it be possible upon receiving a certain keystroke from a user to capture a screen region, say one field, into a variable in the code? Send the server some other commands a...

AutoHotKey MouseMove nit centering properly

I'm running the below code and I expect the mouse to move to the center of the currently active window when I hit comma.....instead it is moving to different points on the screen, depending on where the window is on the screen. It only centers the mouse properly when the window is positioned at the top left (x=0, y=0). #NoEnv SendMode ...

"Lights Out" Automated Scheduled Batch Creation of Excel Workbook?

Anybody have a good approach to automate the batch creation of custom-formatted Excel workbooks at a regularly scheduled time or after an event occurs (e.g., file created, table loaded)? To make things even more interesting, let's further assume that the source data is in a relational database or Unix file, and the results need to be e...

upload file via python script

Hello, I want to upload a file from my computer to a filehoster like hotfile.com via a python script. Because Hotfile is only offering a webbased-upload service (no ftp) I need python first to login with my username and password and after that to upload the file. When the Filetransfer is over, I need the Download and Delete-link (which i...