Questions tagged [automation]

Automation is the process of having a computer do a repetitive task or a task that requires great precision or multiple steps, without requiring human intervention.

Automation is the process of having a computer do a repetitive task or a task that requires great precision or multiple steps, without requiring human intervention.

The term was originally used to refer to the operation of machinery without human supervision, frequently in manufacturing processes.

It is now used to refer to a variety of processes, including:

Examples of Stand-Alone Automation Tools

23535 questions
45
votes
7 answers

Automatic confirmation of deletion in powershell

I'm running the following command: get-childitem C:\temp\ -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname} Which prompts me very frequently like this: Confirm The item at C:\temp\f\a\d has children and the Recurse…
siliconpi
  • 8,105
  • 18
  • 69
  • 107
45
votes
6 answers

How to programmatically fill input elements built with React?

I'm tasked with crawling website built with React. I'm trying to fill in input fields and submitting the form using javascript injects to the page (either selenium or webview in mobile). This works like a charm on every other site + technology but…
Timo Kauranen
  • 453
  • 1
  • 4
  • 5
45
votes
7 answers

How to programmatically convert HTML to epub?

Can I do this conversion with any programming language or library?
Juanjo Conti
  • 28,823
  • 42
  • 111
  • 133
44
votes
11 answers

How to find the UpgradeCode and ProductCode of an installed application in Windows 7

I have an application installed on my machine. I also have its source code but somehow the ProductCode and UpgradeCode of this application were changed. Now I want to get the UpgradeCode and ProductCode of this installed application. I feel there…
codeLover
  • 3,720
  • 10
  • 65
  • 121
44
votes
1 answer

mercurial automatic push on every commit

Being very familiar with the subversion workflow and that fact that 99.9% of the time my computer is connected to the internet, I don't like doing 'hg ci' and 'hg push' separately. I remember bzr had a 'checkout' command that would bind subsequent…
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187
43
votes
8 answers

Disposing of Microsoft.Office.Interop.Word.Application

(Somewhat of a follow on from the post (which remains unanswered): https://stackoverflow.com/q/6197829/314661) Using the following code Application app = new Application(); _Document doc = app.Documents.Open("myDocPath.docx", false, false,…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
42
votes
1 answer

Register Variables in Loop in an Ansible Playbook

I have two ansible tasks as follows tasks: - shell: ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d' register: var1 - debug: var=var1 - shell: ethtool -i {{ item }} | grep bus-info | cut -b 16-22 with_items: var1.stdout_lines register:…
user3364247
  • 1,477
  • 3
  • 14
  • 24
42
votes
3 answers

Headless browser for C# (.NET)?

I am (was) a Python developer who is building a GUI web scraping application. Recently I've decided to migrate to .NET framework and write the same application in C# (this decision wasn't mine). In Python, I've used the Mechanize library. However, I…
Bo Milanovich
  • 7,995
  • 9
  • 44
  • 61
41
votes
7 answers

dial tcp: lookup xxx.xxx.xxx.xxx: no such host

Trying to push an docker image to private docker repository. but getting error like: "dial tcp: lookup xxx.xxx.xxx.xxx: no such host". I have logged in correctly to the repository and build succeeded. The following command using to push the image…
pavan
  • 821
  • 1
  • 8
  • 13
41
votes
4 answers

Changing Android Device orientation with ADB

I'm using Android 4.4 on a real device and I want to set the device orientation via adb. I don't want it done with uiautomator since it won't last after the termination of the uiautomator code. How can I do this?
ShibMe
  • 451
  • 1
  • 4
  • 3
41
votes
7 answers

Quickly Convert (.rtf|.doc) Files to Markdown Syntax with PHP

I've been manually converting articles into Markdown syntax for a few days now, and it's getting rather tedious. Some of these are 3 or 4 pages, italics and other emphasized text throughout. Is there a faster way to convert (.rtf|.doc) files to…
Sampson
  • 265,109
  • 74
  • 539
  • 565
40
votes
9 answers

How to ignore particular scenario in cucumber?

I am using cucumber to feed scenario and java as a language. I need to ignore particular scenario, while running an automation test. I have tried with below @ignore syntax, it doesn't work at all. It doesn't skip particular scenario, it keeps on…
selvi
  • 1,271
  • 2
  • 21
  • 41
40
votes
11 answers

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

Using MSTest how can I 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…
Pritam Karmakar
  • 2,773
  • 5
  • 30
  • 49
39
votes
3 answers

How to get Bundle Id of your app iOS UIA automation

How do I get the bundle Id of the app I am in ?
swathy valluri
  • 5,039
  • 2
  • 16
  • 13
39
votes
4 answers

find and delete file or folder older than x days

I want to delete file and folder older than 7 days so I tried [17:07:14 root@client01.abc.com:~]# find /tmp/ -mindepth 1 -maxdepth 1 -ctime +7 -exec ls -l {} \; So when I run find /tmp/ -mindepth 1 -maxdepth 1 -ctime +7 -exec ls -l {} \; it doesnt…
roy
  • 6,344
  • 24
  • 92
  • 174