automation

Appium Error: Could not get Xcode version

天大地大妈咪最大 提交于 2019-12-12 21:52:10
问题 Appium error when trying to launch test on eclipse. I have installed Xcode 6.4 and it should work but it doesn't. error: Could not determine Xcode version:Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. info: [debug] Setting iOS SDK Version info: [debug] Cleaning up appium session info: [debug] Error: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. at getVersionWithoutRetry$ (lib/xcode.js:115:11) at tryCatch (/Applications

Out of Memory failure automating VSTO Powerpoint API

允我心安 提交于 2019-12-12 20:43:08
问题 I am using the VSTO Powerpoint API to automate the creation of Powerpoint files. What I have found is that using the most basic call to create a Powerpoint file from a web application on a Windows 7 system causes an out of memory error (other VSTO calls that manipulate an open file also fail): PowerPoint.Presentation presentation = _ppPresentations.Add(Office.MsoTriState.msoTrue); string outputDirectory= getOutputDirectory(); presentation.SaveAs(outputDirectory+ "\\CreateSlideTestOutput.pptx"

How do I sense if my unit test is a member of an ordered test and, if it is, which position in that ordered test it is at?

笑着哭i 提交于 2019-12-12 19:07:59
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . Environment: I have a program - named CSIS - which I need to run a lot of automated tests on in Visual Studio 2010 using C#. I have a series of functions which need to be run in many different orders but which all start and end at the same 'home screen' of CSIS. The tests will either be run on their own as a single CodedUITest ( .cs filetype) or as an ordered test ( .orderedtest

Click OK on alert Selenium Webdriver

我的未来我决定 提交于 2019-12-12 17:40:33
问题 Ok so I know there are a number of other answers on this question about alerts in webdriver and I've looked through them but I think my situation is a little different. When I click my submit button I have already switched into 3 frames and then I get the alert, so I tried to switch back to default content and then click the alert using a try catch and alert.accept but it still doesn't click the alert. Code is below. Thanks in advance for your assistance :) public class BookAHoliday { public

I cannot navigate to else part of my selenium code ,always getting failure

你。 提交于 2019-12-12 17:12:49
问题 Please see my below code: My if part of code is running successfully but my else part is not working. The code gets skipped and is showing failure. if (driver.findElement(By.id("error_explanation")).isDisplayed() == true) { driver.findElement(By.id("user_email")).clear(); driver.findElement(By.id("user_email")).sendKeys("soumya50@toobler.com"); driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); driver.findElement(By.id("user_password")).sendKeys("password"); driver.manage()

How to import IDL into Delphi?

与世无争的帅哥 提交于 2019-12-12 15:23:47
问题 How do i import an Interface Definition Language ( idl ) file into Delphi; converting the types and interfaces to a pascal file? I've tried: File , Open : it just shows the text of the .idl text file Project , Add to project : It just (acts like) it adds a .idl text file to the project Component , Install component , Import a Type Library , Add : But it causes a handled crash Component , Install component , Import ActiveX Control , Add : But it causes a handled crash using Embarcadero's

sending email periodically through php script

感情迁移 提交于 2019-12-12 15:12:55
问题 I am working on an automatic monitoring system. I have made a .NET application which have MySQL database. For this I developed a normal ADMIN Panel where admin can log in and get necessary reports coming from various queries fired on the database. There is also a "summary Report" in the panel which is just the rough weekly summary. Now What I want is, I want this report (all text) to get sent automatically to some email "xxxxx@xxx.com" with a seven day period. I have used some PHP scripts

C# Selenium: Click button under iframe

我的未来我决定 提交于 2019-12-12 14:34:23
问题 I have a iframe modal under my site. I am trying to click button in it but I am unable to do so. Below is my code. Please let me know what am i missing driver.SwitchTo().Frame(driver.FindElement(By.Id("iframeid='frame_name'"))); driver.FindElement(By.Id("sendReuqest")).Click(); Expected Result: Button id: sendRequest should get clicked which is on iframe Actual Result: Element is not found. Please let me know if you have any questions. 回答1: Try to do it this way. Let's take frame_name id as

How to send keystrokes to application UI automation -C#

杀马特。学长 韩版系。学妹 提交于 2019-12-12 13:55:15
问题 i need to find out automationid for key board values? how to send keystrokes to application UI automation? i need to automate page up and page down function in key board. What is the best way to do it? EDIT: in my application following the process. Assume end user open MS Word document with 5 pages and he presses page up and page down buttons to move within these pages. i want to automate this scenario using c#. currently i have uses UIAutomationClient.dll and UIAutomationTypes.dll. can i

Log into a Linux machine and execute multiple commands

六月ゝ 毕业季﹏ 提交于 2019-12-12 13:18:10
问题 I am trying to login and execute a set of commands through java from my remote computer (windows 7) into linux machine, (Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.10 Release: 5.10 ) Please look into the Perl script , which is working perfectly, same functionality needs to be achieved. use strict; use warnings; use Net::SSH::Expect; my $ssh = Net::SSH::Expect->new( host => "host123", password => "passwd", user => "username", raw_pty => 1,