automation

Undefined, Undefined in Chrome notification when it's triggered from Selenium

筅森魡賤 提交于 2019-12-20 04:38:40
问题 I am working on automating a website written in Python and using Angular where there are many confirmation notifications. The issue I have is that Behat doesn't seem to recognise those notifications, let alone allow me to interact with them. I have attached screenshots of what the notification should look like and the Undefined – Undefined error message Behat produces instead. My scenario: Then I select the Delete the Media Plan Line Checkbox And I delete the Media Plan Line And I select Yes

Log read only at current date with error append to text file as output

。_饼干妹妹 提交于 2019-12-20 04:20:42
问题 I Have below text on remote computers (a list of 50 servers) saved in e:\logs\action.log This action.log will contain the a Date & time and every time a action performed will be tracked and appends the date & time..... and the next line will have the action associated like working, not working... Sample action.log file text..... [10/15/2012 09:33:56:248 qwe rtd] {some text will be there here} this time it is working on the task and taken: 2.31 seconds [10/15/2012 09:34:55:248 qwe rtd] {some

VBA Internet Explorer Automation 'Permission Denied'

孤街浪徒 提交于 2019-12-20 03:39:08
问题 Dim IE as New InternetExplorer IE.Visible = True IE.Navigate("http://www.google.com") Do Until IE.Busy = False Loop IE.document.getElementsByTagName("Input")(3).Value = "Search Term" IE.document.Forms(0).Submit <------ This line results in error. The error states Run-time error 70: 'Permission Denied' Please do not suggest code alterations. There is NOTHING wrong with the code. This macro works on 9 out of 10 computers. It is NOT a timing issue (I still get the error even if I step through

Expect - get variable from screen region based on row and column

丶灬走出姿态 提交于 2019-12-20 02:12:30
问题 I'm auto-interacting with an SSH session and an ERP program using Expect. Rather than relying on a regular expression to capture a variable in my expect script would it be possible upon receiving a certain keystroke from a user to capture a screen region, say one field, into a variable in the code? Send the server some other commands and resend the field? Say an order number is contained at 6, 12, 6, 18 (where 6 is the row and 12-18 are the columns) containing my 6 digit order number. I want

Unspecified error when calling Word CentimetersToPoints via OLE

狂风中的少年 提交于 2019-12-19 21:52:32
问题 The following code fails with an OLE 800040005 "unspecified" error on the CentimetersToPoint call when executed in Delphi (XE), the similar VBS or VBA version passes var w : OleVariant; w := CreateOleObject('Word.Application'); w.Visible := true; Writeln(w.CentimetersToPoints(2.0)); FWIW the type library gives / [id(0x00000173), helpcontext(0x09700173)] // single CentimetersToPoints([in] single Centimeters); By default, Delphi only passes the floating values as Double, so I tried calling

DTE.ExecuteCommand and wait

泄露秘密 提交于 2019-12-19 16:49:13
问题 I would like use macros for publishing my webapplication project. The little problem is, DTE.ExecuteCommand run asynchronously, and I need to wait until the command is done. Example: DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate() DTE.ActiveWindow.Object.GetItem("04 - Products\04 - Products.WSS").Select(vsUISelectionType.vsUISelectionTypeSelect) DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.Publish") '// now I want copy (and overwrite) some files, but AFTER

Software to Improve OCR Results Based on Output from Multiple OCR Software Packages

旧巷老猫 提交于 2019-12-19 11:38:20
问题 Is there an already-existing piece of commercial or academic software that can overlay results from multiple OCR packages (Abbyy FineReader, Adobe Acrobat Professional, ReadIris, etc.) provide fully automated improvements based on accumulated knowledge from multiple sources allow for use of additional external tools setup at runtime (dictionieres, batch web / local corpus look-ups etc.) ? Note : I already have in-house solutions to visualize results from single sources, so in case there is no

Python - telnet - automation APC PDU

喜夏-厌秋 提交于 2019-12-19 11:34:21
问题 I am attempting to automation turning off connected devices to an APC PDU using python's built in telnet functionality. I believe I am able to enter in the username and password, but I cannot proceed after that. My code is as follows: telnet_session = telnetlib.Telnet(host=self.apc_ip) self.logger.info("Entering APC Username") telnet_session.read_until("User Name :") telnet_session.write(self.apc_username + "\n") self.logger.info("Entering APC Password") telnet_session.read_until("Password :"

Automating the HTML document in an IE web dialog window?

我是研究僧i 提交于 2019-12-19 10:51:43
问题 Posting this question do I can provide a full example for anyone like me who needed to figure this out... Occasionally when automating IE you may be faced with a pop-up dialog which you need to interact with: I'm specifically talking here about the modal dialog which is IE-specific, and opened using showModalDialog https://msdn.microsoft.com/en-us/library/ms536759(v=vs.85).aspx These dialogs are different from the typical "pop-over" dialogs or ones based on window.open() - although they

C# office 2010 automation

时光怂恿深爱的人放手 提交于 2019-12-19 10:33:32
问题 i'm trying to make a program that inserts data into specific places in existing word document and saves a copy of it. and i have no clue how to do it , and i cant find any good resource on office 2010 automating. can anyone point me in the right direction and/or give me some examples. thanks in advance. found a solution will add an answer later on 回答1: Here is how i did it , it may not be the best way , but its working ! add references to the office interop using Microsoft.Office.Interop.Word