automation

Handle elements that have changing ids all the time through Selenium Webdriver

不打扰是莪最后的温柔 提交于 2020-01-20 07:30:45
问题 I am running the script to automate test cases and having this unique problem. I have detected and used IDs of the elements for click etc. purpose. However, all of a sudden these ids have changed and the script works no more. Another weird thing is those IDs are same as in script when inspected in Chrome but different in Firefox driver browser. Firebug for test driver: - <p class="description" onclick="selectElementTextListForIE(this,'tile29', 'tile19');selectElementTextList(this,'tile29', ''

How to create a zip file in the same format as the Finder's “Compress” menu item?

帅比萌擦擦* 提交于 2020-01-20 02:29:05
问题 On Mac OS X, you can create a zip archive from the Finder by selecting some files and selecting "Compress" from the contextual menu or the File menu. Unfortunately, the resulting file is not identical to the archive created by the zip command (with the default options). This distinction matters to at least one service operated by Apple, which fails to accept archives created with the zip command. Having to create archives manually is preventing me from fully automating my release build

Opening of Excel sheet once and writing on it iteratively

谁都会走 提交于 2020-01-17 03:06:05
问题 my app in c# has a prob in writing to excel sheet. My app create excel sheet for its purpose and does not write in it. the below code is for reference only.. class a { void m() { b bee=new b(); Excel.Application oXL; Excel._Workbook oWB; b.write(oXL,oWB); //will be called multiple times } } class b { static b() //declared static so that only once excel workbook with sheets will be created { Excel._Application oXL = new Excel.Application(); Excel._Workbook oWB = (Excel._Workbook)(oXL.Workbooks

Parse file name using batch automation

我们两清 提交于 2020-01-17 01:17:28
问题 This maybe simple enough, but I am not that of an expert to computer languages. I've been stuck searching for a solution for almost 3 hours on the internet. Assuming all my mp3 files are titled with "Name of Artist - Title of Song.mp3" I would want it to output into a txt file that contants: Artist: Name of Artist Song: Title of Song How do I parse the file name into two parts separated with a hyphen? I've been trying to do some sort of automation with batch files for archiving purposes and

Can i find the coordinates of items on my desktop?

ぐ巨炮叔叔 提交于 2020-01-16 13:12:07
问题 There are several items on my desktop such as files and software, I want to know the coordinate of these items or just the coordinate of their centre only in the script so that I can use them later in my script. Is it possible to do that? 来源: https://stackoverflow.com/questions/59535162/can-i-find-the-coordinates-of-items-on-my-desktop

How to print logs by using ExtentReports listener in java?

时光总嘲笑我的痴心妄想 提交于 2020-01-16 09:10:09
问题 Here I am using the listener for generating reports in HTML format but it is not printing the logs present in a test case. Sample Test Cases @Test public void testRedirectAllControlScreen() throws Exception { reportLog("login using a valid IsoMetrix username and password."); HomePage homePage = loginPage.login("username", "password"); reportLog("Go to All Control page"); AllControlPage allControlPage = homePage.navigateToControlPage(); reportLog("Verify All Control page"); allControlPage

Upload new videos automatically from i cloud to youtube

拈花ヽ惹草 提交于 2020-01-16 08:39:49
问题 My friend has an iPhone. All videos he captures using iPhone are synced with iCloud. I am looking for something similar to Zapier to automatically upload videos from iCloud to youtube. I tried searching for solution similar to Zapier which works with google drive as well as Dropbox and many other online storage but not iCloud. I also tried to use microsoft power automate but it doesn't seem to have trigger for iCloud. Anyone please suggest way to automatically sync iCloud videos to youtube

How do I automate navigation to a website that requires authentication?

柔情痞子 提交于 2020-01-16 01:55:33
问题 Here's what I'm trying to achieve. I would like to write a script that will navigate to a website that requires me to be authenticated as myself, say Facebook, Live Spaces, Twitter or any other, and then have that script search for certain information on one of the pages of the website. I've done something similar in the past with the Windows.Forms WebBrowser control, which is a full blown implementation of IE that can be controlled through code and will store whatever cookies you get once

How to not stop execution after assertion fails? [duplicate]

╄→尐↘猪︶ㄣ 提交于 2020-01-16 00:36:18
问题 This question already has answers here : How to continue execution when Assertion is failed (5 answers) Closed 4 years ago . I'm using Selenium WebDriver + Java + TestNG for automation. In my test methods, sometimes there are more than one assertions. Suppose, there are four assertions and second assertion fails, then rest of the execution is terminated. What I want is - even after second assertion fails, code after it should be executed. And at the end(after test method is executed), it

Crystal Reports & VBScript - Could Not Locate Automation Class

半城伤御伤魂 提交于 2020-01-15 13:11:04
问题 First off, I have very little Crystal Reports experience, so apologies in advance if this is a stupid question. I had this "fantastic" work project dumped on me when a co-worker left, so I'm hoping someone can help as most of the Business Objects links I find that might have solutions just redirect to a generic SAP splash page. So I have a few hundred Crystal Reports (mostly File Schema 10.2, although some are 8.5 or 12.0) that are stored on a server. All of them have an associated VBScript