Questions tagged [automation]

1

votes
2

answer
1.9k

Views

Powershell for stopping and starting Azure VMs

I have created a 'Visual Studio Enterprise 2017 (latest release) on Windows Server (x64)' Virtual machine. I would like to start and stop this machine via Powershell. #Login Add-AzureAccount #Enterprize subscription. Id can be found by seraching for subsription in the portal Select-AzureSubscription...
Nigel Findlater
0

votes
0

answer
3

Views

Mouse and keyboard recording software - does this pseudocode make sense?

I am truly sorry as I do not have any specific code to show. I am extremely new to programming and I am just looking for a general advice, or a hint/tip. I had nowhere else to post. I would love the idea of not spending countless hours doing something completely wrong from the very start. Thanks for...
weno
0

votes
0

answer
5

Views

How to have a unique random number generated in a csv file every time without manual intervention?

I need to pass 10 digit alpha numeric random value (e.g. AUT******* where * denotes any random number) in a csv file. Contents of csv file: Code,Account1,Account2,Account3 AUT*******,ABC,DEF,GHI This csv file will be uploaded in to a web application every time to perform some operation. I need this...
Siva
0

votes
0

answer
13

Views

What are some real-time examples of OOPs concepts used in the automation framework using selenium with java?

I have been working as Manual tester for a quite sometime and also worked in few automation projects using Selenium with Java. Recently, I was attending few Automation interviews as I wanted to shift to Automation using Selenium with Java. I faced following question in the interview 'What OOPs conc...
Sri
0

votes
0

answer
4

Views

How to select all class that are above certain tag using css selector in selenium python?

here i want to get all the class = 'result-row' which are above the 'h4' tag, not the ones which are below 'h4' tag. my current code selects all of them: section = driver.find_element_by_css_selector('[class='rows']') result_rows = section.find_elements_by_css_selector('li.result-row') so how can i...
zero
-1

votes
2

answer
15

Views

How to simulate specific code part as if previous ones were executed

I'm writing automation code by using selenium web driver in eclipse. as per my assumption, whole case execution time probably will take about five minutes but once my code got error, i have to run it from the beginning after changing the code to see whether changing part is working fine or not. Is t...
santino87
3

votes
1

answer
162

Views

Clear RichTextBox text through UI Automation?

In C# or VB.NET, I would like to clear the entire text of a read-only RichTextBox control that reside in a external WPF application. The control supports text pattern, but not value pattern. The goal is to prevent this control from appending thousands of new text lines, because at the end I noticed...
ElektroStudios
0

votes
0

answer
3

Views

iMacros cannot insert content in to text field

While recording iMacros, I got this code TAG POS=1 TYPE=DIV ATTR=CLASS:checker__title-inputjs_checker__title-inputjs_checker_module__input&&NAME:text-title&&DATA-PLACEHOLDER:PasteYourTitleHere&&CONTENTEDITABLE:true&&TXT: Now, I want to add data from col1 of my csv. How can I insert that code into th...
user3906629
1

votes
3

answer
46

Views

How to get xpath for the below img class having same values?

How to get xpath for the below img class having same values? Only aria described is unique, I want to click on the first image I tried the following but its not working: //img[@src='/ui/services_co_myatt_overview/1.0.0/images/cbo_expand_icon.png'][1]
Automation Tester
1

votes
2

answer
88

Views

Why my PowerShell script is not respecting the steps order? [duplicate]

This question already has an answer here: Unable to Pause or Sleep after Select-Object 2 answers I tried to find the solution by myself but now I'm out of ideas. I wrote a script that I want to use to check if Erlang is installed on a machine: # Check if a Software ins installed function Check_Pro...
Francesco Mantovani
1

votes
1

answer
96

Views

Not sequential execution of JavaScript with Protractor tests

Whenever I try to run an automated test script written using JavaScript with Protractor, I can see that these two are actually ran in parallel independently of each other. Example: it('Validation of ND account', function() { // I logged in, and navigated to the page I need // And this is where is ge...
Sergey Pleshakov
1

votes
1

answer
235

Views

how to download a file with its cookie and URL?

I have a big problem downloading .xlsx files from a site automatically. I have tried the following code and cookie is ready: Dim request As HttpWebRequest = CType(WebRequest.Create(('http://www.trademap.org/Country_SelProduct_TS.aspx?nvpm=1|||||0101|||4|1|1|1|2|1|2|1|1')), HttpWebRequest) request.Co...
Alireza Allahdadian
1

votes
1

answer
284

Views

What does inspect.exe do to make controls visible?

I'm trying to get specific control via UIAutomationCore.dll library. The problem is, I cannot see it from code (desired children are not found) and UISpy (it shows an exception 'UI Automation tree navigation is broken. The parent of one of the descendants exist but the descendant is not the child o...
Julia
1

votes
1

answer
110

Views

How to select ComboBoxItem in WPF (DevExpress framework) using UIAutomation?

I've tried to get the patterns of all automation elements in that I can use ExpandCollapsePattern but i can't use the SelectionItemPattern to invoke SelectItemPattern. Exception: Exception: 'Unsupported Pattern' Here is my code: foreach (AutomationElement a in automationlist) { if (a.Current.Automat...
VVK
1

votes
1

answer
497

Views

How To Trigger Azure Automation Web Hook From A Web Browser AJAX Call?

I have an Azure web hook on an Azure Automation script which accepts requests to do stuff from the web. The following little Powershell program tests the web hook and it works fine: $uri = 'https://s10events.azure-automation.net/webhooks?token=my_super_secret_token' $headers = @{'From'='[email protected]
Jay Godse
1

votes
1

answer
523

Views

Rest Assured API difference b/t param() and queryParam()

I am using Rest Assured API Automation framework for API Testing and can anyone tell me difference between the methods param() and queryParam() which we use in get() and POSt() request.
Jawad K.
1

votes
0

answer
59

Views

Using RSpec to loop through multiple spec groups

I'm somewhat new to this so bear with. I'm trying to execute several groups of tests independently via RSpec::Core # Example spec_groups = [['spec', 'spec2'], ['spec3', 'spec4']] spec_groups.each do |spec_group| RSpec::Core::Runner.run([spec_group]) RSpec.clear_examples end Two groups of specs - I w...
user3761590
1

votes
0

answer
83

Views

Close Internet Explorer msg box. FindWindowEX function? childHWND?

I'm looking for the solution to close IE browser message box, using Internet Automation in VBA. See attached photo of the screen. I am not considering keypress event as a good way to do it. However I found piece of the code which 'smells good' for a solution of this problem. https://social.techne...
Jacek Rzadca
1

votes
0

answer
282

Views

How to set session attributes using RestAssured for Integration Tests

I have a AbstractClass and this class has following code: protected long getStudentIdFromSession() { Object obj = this.httpSession.getAttribute('studentId'); Long formId = (obj instanceof Long ? (Long) obj : null); LOGGER.info('getStudentIdFromSession studentId {}', studentId); return formId; } I am...
dvanga
1

votes
1

answer
96

Views

How to integrate Custom automation framework with MTM

We have a custom automation framework in place. So for running scripts we have a windows application for trigger some test case. Test cases are simple C# methods and we invoke them using Reflection. Now My requirement is to integrate this framework with MTM. and would like to have continuous integra...
Moody
1

votes
1

answer
256

Views

Appium iOS on Bitrise returns false when checking element displayed

Currently I'm using WebDriverWait (XCUITest) to wait for displaying an element on iOS app. WebDriverWait wait = new WebDriverWait(driver, 15); wait.until(ExpectedConditions.visibilityOfElementLocated(By.name('priority 1 program'))); This works on local machines, but not work on Bitrise server. With...
Phu Nguyen
1

votes
1

answer
418

Views

Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command

I am new in iOS automation and using Appium command line for this. I have script ready to launch the app(Integration app) in real device and Whenever I run the script in Eclipse, I keep getting the following error when running the scripts: Exception in thread 'main' org.openqa.selenium.WebDriverExce...
rshrestha
1

votes
1

answer
750

Views

Run a ruby cucumber feature file from command prompt

I have a bunch of Ruby cucumber feature files that are running from Ruby mine IDE. I am trying to run the same from the command prompt which is failing. Please find the run configuration setting of the successful run from the ruby cucumber from Ruby Mine IDE and suggest me a command to run from the...
sai charan
1

votes
1

answer
150

Views

How to retrieve all the child tags based on given parent tag using XML and Java?

I have an XML file and I want to read all the child nodes / tags values for the given Parent tag. Sample XML content: SOUTH CHESTERFIELD USA US 9998, N. MICHIGAN ROAD. 23834 VA true false RCI 1 RCI false true false FRANK 804/733-3004 USD EN EN BROWNING B en_US For example, if I provide the tag like...
Karunagara
1

votes
0

answer
287

Views

How to check with pywinauto if TreeView item disabled

I'm trying to automate software installer (NSIS) with pywinauto. There is the TreeView as follow Some items a disabled (gray out). I discovered that I can find if item disabled/enabled by analysing pattern of the state code returned. app = Application() app.start('some_path_to_exe_file') dialod = ap...
shurkam
1

votes
1

answer
49

Views

Automating build installation process

I work on a SaaS based product of my company which is hosted on private cloud. So every time a fresh BOM package is available by the DEV team. In the common share folder , we- the testing team installs the build on our application servers (3 multi node servers, with one being primary and the other t...
user3834797
1

votes
0

answer
45

Views

Unble to locate the dynamic search result using Selenium java

I am trying to validate search results with searched values. There's a table which displays all the existing keywords. When particular keyword is need to be listed user can search the keyword. search results are displayed in the same table which all keywords were listed before searching. In particul...
Darshani Kaushalya
1

votes
1

answer
101

Views

Not able to ssh to another machine using Perl CGI Scripts issue with Keys

I am trying to ssh to another machine using Perl CGI script and I am executing the script on a remote machine. I am facing the issue. Note: I am calling below command in Perl CGI Script: Below is just code snippet which is not working as expected i.e it is not executing the script in remote system....
Prateek
1

votes
0

answer
48

Views

Nginx webapp conf creation automation

When I start a new CMS project, say, a WordPress project, I need to create a new webapp with this template: server { root ${drt}/${domain}; server_name ${domain} www.${domain}; location / { index index.php index.html index.htm fastcgi_index; try_files $uri $uri =404 $uri/ /index.php?$args; } locatio...
pntshere
1

votes
0

answer
96

Views

how to control a console oppened in terminal using python

so, i've been trying to make an automated program that do everything i need to open yowsup(a whatapp robot). i need a programe that will open terminal and start yowsup(it is a code that when its open in terminal it start a consle(PHOTO1). what i've done so far is a very very basci code in python to...
Ferbs nando
1

votes
1

answer
20

Views

Can i Configure ram size in browserstack Android devices?

I want to configure the ram size of browser stack device is it possible to do ?. I need to stick some particular device .
1

votes
1

answer
169

Views

How to identify 'mat-calendar-body-cell' in selenium java?

Basically the UI code is written in Angular and I am automating using selenium java. I am facing difficulties in identifying the elements of a calendar. Below is the sample code. Plz let me know how to access the dates.
Raa
1

votes
1

answer
865

Views

AzureRunAsConnection has not exist after create Automation account with Run As account in Azure portal

I have a problem when create a Automation account in Azure with Run As account. But the resources did not included after creating Automation account like as the following https://docs.microsoft.com/en-us/azure/automation/automation-create-standalone-account In the SHARED RESOURCES of Azure pane, I c...
Tony Pham
1

votes
0

answer
56

Views

Copy/Paste and merging data between two sheets with a button and JavaScript

Currently I'm trying to setup a rental tracking spreadsheet in google sheets, for a DJ tech store. I would need some help with scripting a code for the 'Add' button (see pictures in the links). Sheet 1 Sheet 2 The functions might be quite simple to conceive, yet a bit tricky to code, therefore I'm h...
Imants Koķis
1

votes
0

answer
152

Views

Content-Encoding missing in browser mob proxy request header

I need to fetch and verify the Content-Encoding from request headers using Browser Mob Proxy - https://github.com/lightbody/browsermob-proxy I can collect all the requests from device. But unfortunately the Content-Encoding header is missing in the request header. How can I get this header value? Re...
Infant Anto Rodrigo
1

votes
2

answer
371

Views

Selenium Webdriver C# Unable to locate an element on the “active” dropdown class list

I am on the beginner level if it goes for the selenium Webdriver in C#. I can locate elements, write simple scripts in order to input some value, withdraw it, compare and etc. I can also get values from the dropdown list by SelectElement class and so far I have not had any issues. Recently one of ou...
Automation_Padawan
1

votes
1

answer
102

Views

New to programming, using Python for automation

I'm new to programming and wanted to learn python for some automation. I used Selenium to record type and key strokes on a web form. This form will detect if you've signed up before so each time I run the test the first and last name, email address and street address need to be unique. I'm trying to...
Jeff Hall
1

votes
0

answer
170

Views

how to contain error situation in pytest fixture (scope = “module”)

I recently started coding using pytest fixtures and have setup function which bring up and configures various nodes in the network. For writing automation test cases, creating setup is one time activity and is error prone as well. As this is one time hence, scope is set to 'module' or 'session' Whi...
Chirag Dhyani
1

votes
1

answer
676

Views

IE Automation Download

My question is about IE automation in VBA. I got my code to work through the pages and click on the download button. After searching for hours, I came across this page on StackOverFlow: Automate saveas dialogue for IE9 (vba) The code they suggested worked perfectly for saving pending files that need...
Armani
1

votes
1

answer
79

Views

powershell get file location from user

Hi i am trying to automate something for testing purposes. I have a sample.xml file which i need to transfer to some folder , which is done by the user manually. so i am trying to automate this via powershell. The file location should be selected by the user and i want to do Copy-Item -Path $fileL...
HariHaran

View additional questions