automation

Why might COM automation from within a console application work on my development machine but not on another?

落爺英雄遲暮 提交于 2019-12-13 07:07:19
问题 As part of a project I am using COM automation with CorelDRAW. The automation is via a console application which will eventually be launched by a web service but for the purposes of trying to fix the issue behind this question is run as a scheduled task. This works on my development machine (running 32 bit Windows Server 2003) but fails with COM error 80080005 on a machine running 64 bit Windows Server 2003. There does not appear to be any extra information in the event viewer logs [see edit

Automate regression with specific dependent and independent variables

。_饼干妹妹 提交于 2019-12-13 07:06:05
问题 MVE: Let this be the data set: data <- data.frame(year = rep(seq(1966,2015,1), 8), county = c(rep('prva', 50), rep('druga', 50), rep('treća', 50), rep('četvrta', 50), rep('peta', 50), rep('šesta', 50), rep('sedma', 50), rep('osma', 50)), crime1 = runif(400), crime2 = runif(400), crime3 = runif(400), uvar1 = runif(400), uvar2 = runif(400), uvar3 = runif(400), var1 = runif(400), var2 = runif(400), var3 = runif(400), var4 = runif(400), var5 = runif(400)) Let's say crime1,2 and 3 are specific

How to generate report using sikuli for desktop application

拜拜、爱过 提交于 2019-12-13 07:04:12
问题 I automated an application using sikuli. Now the program is full of image (usual sikuli program), I want to generate the final report for the test cases. I can only see the option for robot framework to generate the report. I don't know python. How can I do that without robot framework? Can you jus guide me with the steps to do that? if there is no option guide with the normal way. Thanks 回答1: You can try one of those two: HTMLTestRunner can be used by adding this script (and the .py file) to

VBA to change dropdown value in internet explorer

陌路散爱 提交于 2019-12-13 06:52:56
问题 I am looking to automate internet explorer using Excel VBA to extract football results from a website and am really struggling with getting the data to update when I change the dropdown value. The website is: http://www.whoscored.com/Regions/250/Tournaments/30/Seasons/3871/Stages/8209/Fixtures/Europe-UEFA-Europa-League-2013-2014 I am looking to change the value of the 'stages' dropdown and scrape the match results. My code works fine for opening IE, changing the value of the 'scrape' dropdown

Automating Jekyll/Github Pages builds based on time [closed]

独自空忆成欢 提交于 2019-12-13 06:46:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . I am working on a project where I list only posts with current date(today). It would be great to have Github(or some other tool) rebuild the site every day at midnight 00:00. Can anyone please tell me how this can be done via Github or any other tools? Travis CI maybe? Any

How to use _IEFormElementRadioSelect without finding a Form

非 Y 不嫁゛ 提交于 2019-12-13 06:45:23
问题 I need this script to work, but without using _IEFormGetObjByName or _IEFormGetCollection , and while knowing only the Name of the radio buttons. $oIE = _IE_Example ("form") $oDoc = _IEDocGetObj($oIE) $oArray = $oDoc.getElementsByTagName ("input") For $element In $oArray If $element.Name = "radioExample" Then _IEFormElementRadioSelect ($oDoc,2, "radioExample", 1, "byIndex") msgbox(0,"","Found it") Endif Next _IEFormElementGetValue & _IEAction work great, just reference them to the $oElement ,

Appium iOS automation using Java : get element using accessibility Id?

你离开我真会死。 提交于 2019-12-13 06:38:24
问题 I am new to iOS automation using Appium. I can access elements and do automation using XPath like this driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[2]/UIASecureTextField[3]")).click(); I would like to access elements using the accessibility label name given. When using the Appium inspector I can see that the accessibility name is displayed under the parameter Value . But How to access this value using Java code? Thanks. 回答1: You should be able to use the

How does this simple Java/Selenium WebDriver Code work

别等时光非礼了梦想. 提交于 2019-12-13 06:20:05
问题 I am new to selenium and started learning it yesterday by watching few videos. I have a doubt regarding how this piece of code works. Please explain. // I am creating a Object reference for the FirefoxDriver class FirefoxDriver f=new FirefoxDriver(); //findElementByClassName method is available in FirefoxDriver class. i Can understand this. f.findElementByClassName("Email").sendKeys("abc"); How does sendkeys("abc") work? Is it also a method of FirefoxDriver class? I however know that it

Submitting a web form using C#

て烟熏妆下的殇ゞ 提交于 2019-12-13 06:01:13
问题 I have seen projects that are similar on stackexchange but not the same. Question: How can I submit this form correctly. (The code I have tried is below.) I need to fill in the username and password fields and hit submit. When I tried submitted the form the webBrowser1.url should be redirected to another page. (Which its not) I know the URL will redirect properly because if I go to a page that I dont have permission to go to it redirects me back to this page. WebBrowser webBrowser1 = new

Automated importing/renaming of Flash assets

*爱你&永不变心* 提交于 2019-12-13 05:40:10
问题 So I have an AS3 flash project with A LOT of assets, roughly 1000 at the time being but that may expand to several thousand later. They are all images but half of them are Animated GIFs so I can't import them at runtime. I considered simply dragging them into the flash project but I don't seem to have any control over the naming scheme. Basically, what I want to know is: Is there a way to automate importing and renaming of flash assets, like "Import these 1000 files and export them for