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
53
votes
5 answers

Auto yes to the License Agreement on sudo apt-get -y install oracle-java7-installer

The Oracle Java package for Ubuntu interactively asks about the License Agreement. So I have to say 'OK' and then 'yes' every time, but I'd like to automate it. What I do is this: sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get…
kojiwell
  • 872
  • 1
  • 10
  • 10
52
votes
12 answers

Why is Cypress saying my element is detached after just running a get command?

Objective: I want to click on a particular element on the page using an accessibility selector with cypress Code cy.findAllByRole('rowheader').eq(2).click(); Error Timed out retrying: cy.click() failed because this element is detached from the…
Gwynn
  • 553
  • 2
  • 5
  • 10
52
votes
6 answers

How to version build artifacts using GitHub Actions?

My use case is I want to have a unique version number for artifacts per each build/run. With current tools like CircleCI, Travis, etc. there is a build number available which is basically a counter that always goes up. So, I can create version…
moorara
  • 3,897
  • 10
  • 47
  • 60
52
votes
3 answers

How to use Selenium with Python?

How do I set up Selenium to work with Python? I just want to write/export scripts in Python, and then run them. Are there any resources for that? I tried googling, but the stuff I found was either referring to an outdated version of Selenium (RC),…
Carpetfizz
  • 8,707
  • 22
  • 85
  • 146
52
votes
8 answers

Is it possible to modify a registry entry via a .bat/.cmd script?

Is it possible to modify a registry value (whether string or DWORD) via a .bat/.cmd script?
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
51
votes
6 answers

How to check if specific resource already exists in CloudFormation script

I am using cloudformation to create a stack which inlcudes an autoscaled ec2 instance and an S3 bucket. For the S3 bucket I have DeletionPolicy set to Retain, which works fine, until I want to rerun my cloudformation script again. Since on…
51
votes
11 answers

Auto-generation of .NET unit tests

Is there such a thing as unit test generation? If so... ...does it work well? ...What are the auto generation solutions that are available for .NET? ...are there examples of using a technology like this? ...is this only good for certain types of…
Phobis
  • 7,524
  • 10
  • 47
  • 76
48
votes
14 answers

Selenium waitForElement

How do I write the function for Selenium to wait for a table with just a class identifier in Python? I'm having a devil of a time learning to use Selenium's Python webdriver functions.
Breedly
  • 12,838
  • 13
  • 59
  • 83
48
votes
5 answers

Create networks automatically in Docker Compose

When using custom networks in Docker like networks: default: external: name: service-tier And try to run that, I´m getting the error ERROR: Network service-tier declared as external, but could not be found. Please create the network…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
48
votes
6 answers

Upload file to SFTP using PowerShell

We were asked to set up an automated upload from one of our servers to an SFTP site. There will be a file that is exported from a database to a filer every Monday morning and they want the file to be uploaded to SFTP on Tuesday. The current…
Konstantin V
  • 533
  • 1
  • 5
  • 9
48
votes
3 answers

How to enable cookie in phantomjsdriver selenium c#?

Following is my code : case BrowserType.PhantomJS: var service = PhantomJSDriverService.CreateDefaultService(Path.Combine(_rootPath, @"Packages\")); var cookieFilePath=Path.Combine(_rootPath, @"Packages\cookie.txt"); …
Prateek
  • 627
  • 1
  • 7
  • 19
48
votes
4 answers

Check if specific file in git repository has changed

I am novice in dealing with git, but I have a repository that contains a file named 'test'. I want to check if that specific file has changed. Is there anyway to do that? From a big picture, I'm writing a batch file that will perform a git clone of…
user2554585
  • 3,489
  • 6
  • 20
  • 23
47
votes
8 answers

Android – multiple custom versions of the same app

Whats the best way to deploy several customized versions of a Android application? Currently I have a script to exchange the resource folder for getting a customized version of my app. It works great, but all custom versions still have the same…
Ulrich Scheller
  • 11,800
  • 5
  • 28
  • 32
46
votes
2 answers

Forwarding all batch file parameters to inner command

For my comfort in Windows, I want to prepare some PHP tools launched like in Unix. f.e.: composer create-project symfony/framework-standard-edition path/ Not: php composer.phar create-project symfony/framework-standard-edition path/ I made…
Szopinski
  • 790
  • 1
  • 10
  • 18
46
votes
4 answers

How to automate git merge to not prompt to confirm the commit message?

I'm trying to do some automation scripts using git, simple things like updating submodules, moving to proper tags etc, but one of the problems I'm now finding is that git now forces you to confirm a merge message. Is there any way to squelch this…
buzzedword
  • 3,108
  • 3
  • 21
  • 26