automation

How to handle an iPhone alert with 2 buttons (want to click the non default button)

六月ゝ 毕业季﹏ 提交于 2019-12-13 03:39:05
问题 I am automating an iPhone appplication While I type the mail ID in the TO: field and click on send, I get a confirmation alert with two buttons "Cancel" & "Send". The default button is "cancel". I'm unable to click on the send button. Here is the code snippet which I have used. Please help me with this //Get the handles window = UIATarget.localTarget().frontMostApp().mainWindow(); target = UIATarget.localTarget(); app = target.frontMostApp(); buttons = window.buttons(); target.delay(2); //tap

How to Handle Automation of Flat Files in SQL Server

主宰稳场 提交于 2019-12-13 03:23:14
问题 Problem : I receive multiple sets of flat files on a weekly basis that need t be imported my Database. The flat files I receive are not in a conventional format to import, so they need to be run through a script and be parsed in to a more SQL friendly format. These flat files are usually in JSON, TXT, XML, LOG, ect. Current Solutions Current I have a windows forms application and another GUI to transform the files and to bulkimport to SQL tables. However, I'm finding it unreliable to ask

Running AutoIt3 Scripts in VB 2010

岁酱吖の 提交于 2019-12-13 03:10:37
问题 I am fairly new to this, so pardon me if I am asking a silly question. I created an application in 2006 that calculates bottom-hole pressure. Basically, it takes the user-inputs, calls a secondary application called REFPROP, and delivers the REFPROP results back to my application to continue the calculations. Using AutoIt, I created a temp file with user inputs & another with REFPROP outputs. Since REFPROP was a cmd prompt application, the process was fairly simple. Now, the REFPROP I

python - Auto input typekeys to cmd process that has admin privileges - Using pywinauto

扶醉桌前 提交于 2019-12-13 02:49:08
问题 I have a cmd process running with admin rights. I need to be able to automate some commands. Example echo Testing MUST connect to existing Admin cmd process. (The cmd must be launched from here Location: C:\windows\system32\ComputerDefaults.exe). Currently i can connect to a cmd process with normal rights and send code. from pywinauto import Application app = Application().connect(process = 16364) dlg = app.top_window_() dlg.TypeKeys('hello world') However i can not connect to my cmd with

How to set SSL bindings on Azure Web Apps via Management Rest API?

非 Y 不嫁゛ 提交于 2019-12-13 02:19:04
问题 We are building automated deployment on Azure using the WebSite Management SDK. We currently managed to add hostnames to a Web App via code. using (websiteClient) { var configuration = websiteClient.WebSites.Get(webspace, WebsiteName + "-" + Version, new WebSiteGetParameters()); configuration.WebSite.HostNames.Add(ClientName + "." + DnsZoneName); var response = websiteClient.WebSites.Update(webspace, WebsiteName + "-" + Version, new WebSiteUpdateParameters() { HostNames = configuration

How to install software automatically with Coded UI in C#

﹥>﹥吖頭↗ 提交于 2019-12-13 01:45:43
问题 I'm developing a tool which will automatically install a software in PC. I'm trying to do this with Coded UI in visual studio 2013. To install the software I need to click on the "Next" button on setup window. But when I click on the button its showing a warning - Access to the application is denied Here is the screenshot of the issue - How can i automate the process? Is there any better approach rather than Coded UI that I should think about to install the software automatically? 回答1: Just

Automated task

感情迁移 提交于 2019-12-13 01:11:53
问题 I have a C# program that I want to run automatically every night without me having to do this, I believe there is a way of doing this by setting an automated task however im not sure how to do this? P.S. not sure if this helps but it has a .exe file in its library. Thanks in advance. 回答1: What about registering this as a scheduled task? Go to Control Panel -> Scheduled tasks. Here you can easily add your exe as a task and choose when and how often to run your task. In Windows 7 this is

How to use CSS locator with tag + class name + inner html text to identify a button in a span

这一生的挚爱 提交于 2019-12-13 00:46:03
问题 I am using selenium FirefoxDriver to automate a test case (I am new at this) I need a way to locate a Button (which I think is implemented as a div/span) This xpath locator works when I try that in Selenium IDE //span[contains(text(), 'Login')] Also I can use this CSS locator using the span tag and the classname css=span.x-btn-button What I need is a way to use CSS locator with tag + class name + inner html text. (This will help me in handelling some of the other UI element in my application)

AppleScript to save pdf as pdf-x in Acrobat

吃可爱长大的小学妹 提交于 2019-12-13 00:09:25
问题 I am currently using Adobe Acrobat Pro DC 2015.23 on macOS Sierra. My goal is to create AppleScript that do such things: Open PDF File Save this file to pdf-x format Close file I create AppleScript, that do all steps, but i can't find any documentation how to choose with PDF standard to use while saving. If I want to do this manually I do following steps: Open PDF in Adobe Acrobat Choose PDF Standards Menu Click (Save as PDF/X) Press save The question is how to set PDF/X standard while saving

TestNG parallel classesAndMethods without XML

只谈情不闲聊 提交于 2019-12-12 22:21:34
问题 I'm trying to have both classes and methods running in parallel. For example: Method Tests public class MethodTests(){ @Test(groups = "testMe") public void methodTestOne(){ ... } @Test(groups = "testMe") public void methodTestTwo(){ ... } } Class Tests -> Hoping the Test annotation on the class level would do it @Test public class ClassTests(){ @Test(groups = "testMe") public void classTestOne(){ ... } @Test(groups = "testMe") public void classTestTwo(){ ... } } I've included the surefire