Click here to Skip to main content
15,890,845 members
Everything / DevOps / Automation

Automation

automation

Great Reads

by raddevus
Steps for building a device you can add to your existing garage door, which implements an atmega328, bluetooth (hc-05) and relay module which will allow you to open your garage door from any paired Android device.
by Ben M Watson
Five more attributes of highly effective programmers
by Michael Haephrati
Now you can store your own voice recordings kept by Amazon but not made available to customers
by Adam Tibi
Exposing .NET functions to be consumed as Excel functions, otherwise known in Excel as "User Defined Functions" . Those .NET exposed functions can be easily used from Excel's cells. This article presents two ways to achieve this and the pros and cons of each.

Latest Articles

by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by Wessel Beulink
Azure spearheads cloud evolution, Azure Automation Runbooks manage hybrid/SOC environments effectively
by Suhagkumar Vamja
In this article, we learn about Playwright, how it works, and why it is a good choice for web automation with Java.
by Suhagkumar Vamja
In this article, we will learn how to set up Cypress and run the web automation tests (in series and parallel) on the LambdaTest cloud grid.

All Articles

Sort by Updated

Automation 

29 Sep 2016 by #realJSOP
Based on your question, I have no idea what you're trying to do, but the only way you can communicate with a user interface from a Windows service is by some sort of interprocess communication, such as remoting, TCP/IP, WCF, user-defined Windows messages, etc..
9 Oct 2019 by 09hadi
For our day-to-day operations at the office we use Azure DevOps to keep track of the Scrum artifacts and the activities. Working in the UAT team, each member is assigned to a different scrum team and they show up on DevOps as such, but for reporting purposes, I have created a separate query to...
4 Aug 2022 by 0x01AA
One can address a specific cell directly by row/column index. E.g. like firstTable.Rows[1].Cells[1].Range.Text = "My Value for that Cell"; Note: Keep in mind that for office interop the index of a collection starts at '1' and ends at...
5 Jan 2012 by 10der
Hi!I have simple OLE Automation code:[ComVisible(true)][ProgId("Olololo.Test")][ClassInterface(ClassInterfaceType.AutoDispatch)][Guid("a1dd5e0f-b9e7-470f-7777-77777e44188d")][skip...]public int NewWithParams(int Fix, params object[] args){ return Fix;}vbs...
5 Jan 2012 by 10der
Oh my...1) add attribute to parampublic int NewWithParams(int Fix, [In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] params object[] args){ return Fix;}2)vbs calltest = net.NewWithParams(777, Array("Let", "me", "take", "you", "on",...
26 Jul 2016 by 123456789igor
Just started investigate the Xamarin Test Cloud. I want to write a simple test using VS and run this test on iOS simulator, which is running on Mac machine. I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.I've faced with exception "iOS tests are...
26 May 2021 by 15160877
When I run my java application like this: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; public class ChromeExample { public static void main(String[] args) { //Setting...
12 Jul 2012 by a_daish
Hi All,Wondered if you could help.Putting together a Twitter desktop client together in Visual Studio 2010 using Visual Basic for a project. The Twitter client works a charm but I'm trying to figure out how to receive socket messages from third party applications. It needs to be able to...
23 May 2017 by abdul subhan mohammed
Dear All, I'm creating a windows application in c#, where automating windows. And I'm trying retrieve all/list of the pinned applications in the taskbar. What I have tried: I searched on internet, but I didn't get any suitable solution. Can anyone please help me. Thanks in advance.
25 May 2017 by abdul subhan mohammed
Dear All, I'm creating windows application using c#, where i'm automating windows. I'm trying to get the list of items in the start menu in windows 8.1. When we press only window key and we get some items on the start menu screen, i want to fetch these items only but not those which we get...
29 May 2017 by abdul subhan mohammed
Dear All, I'm creating windows application in c#, where automating windows. I'm trying to extract text from sticky notes. But its an compound file, so, can any one plz help me, how can i read/extract text from sticky notes. one of the manual way i found is, 1)copy the sticky file 2)extract...
5 Jun 2017 by abdul subhan mohammed
Dear All, I'm creating a windows application in c#, automating MsOffice Excel. i'm trying to hide ribbon display but its not hiding the ribbon. What I have tried: public static bool ChangeRibbonDisplay(IQuestion question, string filename, ShowHide display) { ...
12 Aug 2013 by Abhinav Chitre
How to set a textbox value for a website using C#. The control has onkeydown event
9 Jan 2017 by Abhishek Kumar (here to help!!)
Hi, I have a main window (WPF) and a frame in it. A page control is opened in the frame area. Within the page control, I have TabList control. The Fist tab (tab1) has a WebBrowser Control which host some Html content.While writing Coded UI Test, I'm able to locate (tab1) control but...
10 Oct 2011 by abhishekJyoti
I am using the Webbrowser control(IE object) in VS 2008 C# Express to automate thenavigation of pages on a partner's web site. The first page containsan element:Within that frame I need to access these three elements:
19 Feb 2019 by achimschoen
Opening an Excel document by C++ MFC OLE automation shows a naming conflict ("_FilterDatabase") while the similar approach in C# .NET via Microsoft.Office.Interop.Excel does not. n my C++ MFC OLE Automation project I have imported the type library for excel.exe and selected the interfaces...
13 Jun 2013 by Adam Tibi
Exposing .NET functions to be consumed as Excel functions, otherwise known in Excel as "User Defined Functions" . Those .NET exposed functions can be easily used from Excel's cells. This article presents two ways to achieve this and the pros and cons of each.
1 May 2018 by Afzaal Ahmad Zeeshan
That website itself is running and does provide a response, although an error message but it does work. Please check that you are not running this program behind a firewall or a network isolated environment. And yes, the IP address is the underlying IP address for your hostname (the one you are...
28 Mar 2013 by akiran
the document object of the webbrowser control has a property called window object, this would give reference to the iframe controlsif your webbrowser control name is webBrCtrl then the below line should give you the collections of iFrames in the HTML document that is loaded in the webbrowser...
18 Jun 2013 by akosisugar
Hello experts! im creating an advanced media player in vb.net. After exectuing the code from the AxWindowsMediaPlayer1_PlayStateChange event I want to autoplay the new selected item inside the listbox. Just like windows media player.Can you help me with my code please!Private Sub...
24 Oct 2016 by Aless Alessio
Use the OLE Automation Procedures to retrieve data from a Web Service and parse the JSON response into a table format
2 Dec 2014 by alexandrcoder
I think you will have a chance to place all the files into one folder on server. Then you can create a script for automatic file printing from the folder. There are specialized software programs that support bulk printing of files of different types. For example, there exists Print Conductor....
23 Jan 2013 by Ambarish Jana
Hi All,We have WPF application which is created in .NET4.0. We have upgraded our application to .NET4.5 with a new version.Now, we are getting problem to install upgraded software in user's system. There are few thousands user using our app. It will take time and need human effort to install...
2 Aug 2020 by Amit Saini
Hello Everyone ,My motive is to control visual studio by voice commands by using microsoft speech services. I want to control visual studio from my another window form app in c#. I have a little bit success but there is some problem in SendKeys...
5 Jun 2013 by amnk.info
try firebughttps://addons.mozilla.org/en-US/firefox/addon/firebug/[^]
19 Feb 2016 by Anand Naikar
We are automating an "Winforms" application.When we try to fetch the AutomationElement's IsEnabledProperty value, we always get false.We tried for both Enabled and Disabled context menu items. For both the types we get false.As per MSDN link "AutomationElement.IsEnabledProperty Field...
11 Dec 2015 by Anda Cristea
Hi,I was very surprised when the same test run on RemoteDriver works well but on ChromeDriver locally crash unexpectedly.At first I think that it is my fault.I mentioned that I worked on NUnit, C# and Visual Studio.I want how to avoid such of situation.Thank very,Anda
28 Nov 2015 by Andreas Gieriet
Of course you must have Ranorex installed to run your code if it refers to some Ranorex type. To compile, it is sufficient to have it installed without any license. To run, you need of course a valid license. See www.ranorex.com.RegardsAndi
25 Jul 2021 by André Marcos (Advisor), Luciano Santos de Jesus
Automation with Arduino Prototype for an Alarm Device based on Audiometric Sounds Pattern Control
4 Dec 2020 by Aniket945
I am writing a code in C/C++ with Win32API which Automates Chrome(I know there is Selenium and I used that but there is BOT detection available. Just forget about slenium).In my code There are extra features too ie.-If you have multiple Chrome...
10 Nov 2014 by Anil Kumar Ch
Hi friends,I am trying to install MTM using TFS. i am able to install MTM and connected to TFS. now for running automation i need to install test Agent and Test Controller. so while configuring test controller i am getting an error failed to obtain service account.error :Failed to...
24 Sep 2016 by Ankita Khanna
We are testing a standalone application that is developed in Java and uses ubuntu platform. We have to validate that there are not truncation issues when the application is tested in different languages. Do we have an tool that can do it or what could be the way to automate this...
19 Jun 2014 by anup.bhunia
In windows application you could achieve that handling OwnerDraw or DrawSubItem events. If you change any value of the subitem, it will fire the DrawSubItem event and on that event you could draw the progress.You could refer to following article for more...
19 Oct 2018 by Apriorit Inc, KonstantinovSlava
Two ways of performing object recognition using OpenCV and comparing them to each other. Both approaches have their own pros and cons. This comparison will help to choose the best one for your task.
4 Oct 2011 by ARBebopKid
Can you open the file using Microsoft.Office.Interop.Excel and cycle through the sheets to rename any sheets with long names before importing?
18 Apr 2014 by Archie Jacobs
Start with AdvancedHMI. It will let you get the data from the PLC very easily. Then you can write some VB code to store it in a database.
9 Jul 2012 by armagedescu
You will likely have many such type of questions. When working with automation, is better to make small test functions in VBA, just to see how it works. And after that do the same thing in C++. By doing like this you will understand much faster the documentation, the type library and what are...
29 Mar 2012 by Arvindabc
How to send enable password using expect i have written my code but having some issues in it .proc clearLine { conServerIp} { set password "lab" set enablepw "lab" set spwnid [ spawn telnet $conServerIp] expect { "Password:" { ...
11 Apr 2016 by Aseem Sharma
Hi friendsI am trying to execute automated test-cases on Microsoft Edge browser. While executing a test-case, Edge get launched, page get loaded but then it fails to execute javaScript (using IJavaScriptExecutor) and throw below exception:-> error: unknown error (WARNING: The server did...
13 Dec 2011 by Ashakoti
I have started automating HTML using Selenium 2 with NUnit and C#.I need help to access dropdown value.Html code which I have written returns count as 0 even though there are values.var driver2 = frame.FindElements ( By.Id ( "PageWizard_ddlAccounts" ) );driver2.count;
3 Jan 2012 by Ashakoti
Can anyone please tell me how to use regular expressions in selenium webdriver c#i have a Html element ID which has numbers in between like "WebDri123Ver"Number keeps changing everytime.. Thanks in advance
23 Jan 2015 by AutomationGuy404
Does any one has experience with TWIN Automation Tool, i'm trying to retrieve data from an windows application but not able to. Can someoneplease share their experiences
23 Jan 2015 by AutomationGuy404
I'm not sure if you have already tried WHITE.
23 Feb 2012 by avianrand
I've tried changing this around so many different ways based on what I've found online and just can't get it to work. The line "xlWkSht.Rows(Trim(Str(i)) & ":" & Trim(Str(i))).Select" is where the error occurs. Any help would be appreciated. Here's my code:Dim xlApp As Excel.ApplicationDim...
23 Feb 2012 by avianrand
ryanb31's suggestion about an Open method, prompted further investigation. This is the code that finally works well:Dim xlApp As Excel.ApplicationDim xlWkBk As Excel.WorkbookDim xlWkSht As Excel.WorksheetSet xlApp = CreateObject("Excel.Application")'Set xlWkBk =...
6 Mar 2013 by AyushJain1890
Hi,I want to kill all the open Browser After Some particular instant of time and it will be a parallel process along with that That I am already doing.USING C#.Any Suggestion for this implementaion..
28 Jun 2012 by barneyman
Qualifier here - I have no experience with CHtmlView, I use the browser through WTL[^] - in that architecture it's necessary to call SetExternalDispatch[^] to glue the browser events into the windowI found this thread that talks about MFC being broken[^] - it does point to an alternative
15 Sep 2014 by Ben M Watson
Five more attributes of highly effective programmers
26 Apr 2012 by Bernhard Hiller
NAudio can do alot of conversions, and it comes with source code:http://naudio.codeplex.com/[^]I expect that you can then figure what to do next.
9 Sep 2014 by BharatPrajapati212
Hi,My application find the currently open URL from chrome when user press "enter" key.But actually when I press the "enter" key sometime application is crashed and all time it doesn't give me a opened URL.And most stressful problem is application works good if I set debug point before...
12 Nov 2014 by Bhaskar Reddy Kalupudi
I have one codedui application and i have created dll for this codedui application and referred this dll into other windows application.then i have created setup(exe) for the windows application. I have tried to run this exe on non visual studio machine.But I got this below...
20 Aug 2016 by Bhuvanesh Mohankumar
Task:I have created a Selenium Automation Scripts using the Visual studio and C# language, I have the set of files including Assemblies [DLL and Executable] in the bin folder of the project.How does it work?When I click on the executable it automatically triggers the Firefox and...
25 Apr 2015 by BillWoodruff
I am not familiar with the "UI Automation Library" but Form.ActiveForm in a WinForms Application will return a reference to the active Form; if there is no active Form, it returns 'null [^].
26 Jun 2016 by BillWoodruff
First, realize that you are going to try to achieve some form of functional equivalence using two very complex code entities, Selenium, and Phantom. Unless you are a very advanced web-stack developer, I suggest you not start down this road.Second, Phantom has a support group here: [^]....
15 Oct 2012 by Bitla Phanindra
FREE FORMAL LANGUAGES AND AUTOMATA THEORY [^] EBOOK.Hope that helps. Enjoy!
4 Oct 2011 by bjoernisemann
Hi,i got a problem with a machine generated excel file. I have no chance to alter any settings for the export and have to live with the files. The problem: the sheetname is longer than the allowed size of excel. When i try to import the excel data via oledb i get an error 22 exception of...
31 Jul 2014 by bling
Adda new date/time field called "Until" and add a new "Hiatus" value to user_code.When user tries to log in too many times, set user_code to "Hiatus" and set Until value to DateTime.Now + 24 hours.Next time they try to log in, if user_code equals "Hiatus" and DateTime.Now
25 Oct 2016 by cccma
Hi ,We also are looking a solution to automate similar application. Please suggest an automation tool for same.
17 Aug 2022 by CCT TestPSQA
We presently use Automation Framework with MStest and Selenium C# POM framework for the e-commerce domain in our organization. Currently, organizations are moving toward an AB testing strategy for a few pages. Therefore, I am unsure of the...
22 Mar 2016 by Chandrasekhar Telkapalli
Understanding the User Business Process,analysis on benefits of doing Automation and best approaches & practices in designing the solution
15 Nov 2022 by CHill60
The documentation states (bold mine)Quote: All current versions of Microsoft Office were designed, tested, and configured to run as end-user products on a client workstation. They assume an interactive desktop and user profile. They do not...
26 Sep 2012 by ChinchinCool
you need to use SQL Server Jobs:http://technet.microsoft.com/en-us/library/ms135739.aspx[^]
18 Jan 2012 by Chris Meech
You are calling SendKeys on your own appplication's window. Try to call SendKeys on the window's handle for the window that you are getting with the FindWindow call. :)
5 Feb 2012 by Christian Graus
Your asp.net does not contain a table, your SQL Server does. As others have said, ASP.NET doesn't have any code that runs constantly. I would look at setting up jobs inside SQL Server, or you could write a windows service that responds to a timeout to perform your task.
16 Dec 2012 by Christian Graus
You need an app on the phone that sends location data through a web service to your database. This app would let you upload pics as well.A web service is your way to get your phone app able to pass data through the web to your DB.
10 May 2018 by Christian Graus
First google hit: Overview  |  Directions API  |  Google Developers[^]
13 Feb 2024 by cmarcotte
I am not expert in C#, but in VB. But, with Word and Excel, you can use their macro recorders. You will need to modify your macro to to include interop objects in macro statements, but most part of the work will already be made with macro...
1 Aug 2021 by Code Fan
The standard solution today is to use Autocomplete | jQuery UI[^]. Your JavaScript skill seems good enough to handle this, because you're already using jQuery. Use standard UI tools. Never reinvent wheels. After you become proficient with jQuery...
16 Dec 2013 by codeninja-C#
Hi,I would like to test ASP.NET windows application forms using AutoIt.I have a simple login dialogue box and it contains two text boxes one is for user name and other one is for password.I would like to write autoIt script to set text to user name and password text boxes. (textBox1...
5 Jun 2013 by Coldcreek
If I am using Firefox what kind of add-on are available which can find bugs in a website?
30 Oct 2014 by CPallini
Did you Google for[^]?
9 Jan 2022 by damien couesnon
Hello, My project is to create an automatic Word form generation which will be generated using software and which would render as follows: https://prnt.sc/26bj3ui For this, I had proposed a model which is: https://prnt.sc/26bj4pp ...
25 Feb 2013 by Darren_vms
Can Android be used for home automation ?Sure, so can C#, php, basic and any other language. The question really is what hardware are you attempting to interface with ?You can as an example get a light bulb with built in blue tooth Yes you can[^] so as long as you can find out the specs...
31 May 2018 by Darryl Bryk
A C# method is discussed for using bookmarks in Microsoft Word templates to automate reports.
30 Dec 2019 by Dathuraj Pasarge
Database mirroring setup without any DBA effort - on every new database creation
25 May 2013 by Dave Kreskowiak
You don't do this in your code. This would normally be done as a scheduled job in SQL Server. Create the job in SQL Server Manager and you're done. No code required.
19 Jan 2015 by Dave Kreskowiak
More than likely, there isn't one. You're going to have to do the vast majority of the conversion by hand.
25 Jul 2017 by Dave Kreskowiak
As far as I can tell, you don't. You have no access to the processes running on the remote machine over remote desktop, let alone the documents they are working on.
31 Dec 2017 by Dave Kreskowiak
We're not here to help you hack a web site.
28 Mar 2018 by Dave Kreskowiak
I'm sure the terms you're using make perfect sense in your head, but you're the only one who can understand what you're thinking. You have to provide exact definitions of what you mean by those terms. Now, as far as an automation library that supports all the major browsers, Selenium is the...
26 Sep 2018 by Dave Kreskowiak
Too bad Dash buttons don't work on NFC. The range of NFC is just a few centimeters. Dash buttons are programmed to use your Wifi network using sound, in frequencies we can't hear. You hit the button and the Dash button uses your Wifi network to contact an Amazon web service that places an...
24 Sep 2016 by David_Wimbley
It looks like in java you have a local method and it interacts with ResourceBundle which is a key value pair of your strings that are localized.Locale (Java Platform SE 6)[^]You should then be able to create unit tests where all you do is call the same class/method but pass in the...
22 Oct 2015 by dersaartan
Hi folks,here's the setting:We're developing an extension for an ERP software and supporting different versions of it. Each supported version needs different references. Today, we have four Visual Studio solutions to support four versions of the ERP software.Is there a possibility...
6 Sep 2018 by Desmond McCarter
A utility for generating Selenium based Page Object Pattern classes used in web/mobile test cases.
10 Jul 2013 by Dholakiya Ankit
if i understand you perfectly you need a background work to start on when button clicked and then check untill defined time or until your button becomes on you can do this by background worker
13 Sep 2012 by dipaklchaudhari
I want to automation in publish of website after the successfully build of web site.after that publish execute db script in server and the deploy to the server.
8 Oct 2013 by Dragonranger
A way to add automatic properties to the FormCode for InfoPath 2007.
15 Dec 2011 by drexel12
Hello Alexander,First I wanted to congratulate you for the wonderful article:http://www.codeproject.com/KB/cs/mshtml_automation.aspxThen I wanted to ask how to create a distribution package mshtml automation demo to distribute this application and is it working on windows 7 windows xp...
4 Sep 2019 by du lich
Hello friends. I have a problem that needs your advice. I am controlling a WPF application from another windows application through UI Automation. Now, I know how to click a button through UI automation, but lets say if I am clicking some dialog button manually in WPF application than how would...
24 Jun 2015 by duyeoung.ryu
i'm developing ole automation application. while converting VBA code to C++.Dim back As HYSYS.BackDoorabove "BackDoor" is OLE Automation's class type.variable back is simply declared in VBA , but c++ is not.how to declare class type variable in ole automation ?i don't know how...
28 Mar 2012 by eduphilic
i am creating a website for blogging in .jsp. need an j-query for Auto spelling checking for the typing error for user
21 Nov 2017 by Emiliano Musso
Create a Word-like software using RadRichTextEditor and C#
1 Feb 2015 by Emiliarge
Comparison of 4 browser engines and controls + some tips for using them (in attached projects and in tip text). Short and clear.
27 Jun 2016 by EnGiNe.Pl
Let's assume, we have a view: "ViewProduct.cshtml". Now let's say we want to create simple AddProduct GET and POST actions. Is it possible to auto-generate AddProduct GET version by doing this:Render exactly what is in ViewProduct.cshtml, but replace each @Model.$property$ of type string...
9 Jul 2012 by enhzflep
Rather than indexes into the Sheets collection, you need to supply the function valid worksheet objects.Firing up a new instance of excel and recording 2 macros, we get the following code:1. Sheet added between Sheet2 & Sheet3 (right-click sheet 3, add new worksheet) ...
16 Jul 2012 by enhzflep
Yes, both are possible.The controls in the ribbon are declared in an XML file. I'm not aware of a method to traverse the XML and add/remove items directly.In order to change the controls that you add to the ribbon, you simply maintain an XML file for each of the control configurations...
28 Jul 2017 by ergohack
This is an article on how to post automated test results to Microsoft's Test Manager Infrastructure from external sources (e.g. your home grown automated test harness).
14 Feb 2013 by Espen Harlinn
It's possible that you would be interested in the Stab[^] programming language:class C { // Manually implemented property private int myProperty; public int MyProperty { get { return myProperty; } set { ...