automation

How can I edit fields in pdf dynamically from Delphi code?

余生长醉 提交于 2020-01-23 17:50:27
问题 I have to update fields in pdf dynamically from Delphi code. Is it possible to classify a textbox from a checkbox in pdf file? If so, how to update from Delphi code? Is there any third party library available under GNU license for that matter? 回答1: If you can figure out how to run PHP from within Delphi (?), there is another tool TCPDF which is LGPL licensed close to GNU licensing. If you can figure out how to call Java from Delphi, then you could try PDFBox (an Apache project so the licence

how to switch between two application using pywinauto 0.5.4

微笑、不失礼 提交于 2020-01-23 16:11:30
问题 I am trying to automate a task of copying every single line one by one from Notepad and pasting it the application and then clicking at a button and then copying the output to a third notepad file. I am using pywinauto 0.5.4 of python for this automation and I am not getting any help on how to switch between different application from pywinauto import application app = application.Application() app = application.Application() app.start("Notepad.exe") app.start("C:\Program Files (x86)\eSpeak

Use all of the requests to answer available at once on a question on Quora from the Google Chrome browser console

别等时光非礼了梦想. 提交于 2020-01-23 03:18:45
问题 I often have to click 25 times on the blue button with a plus next to the suggested profiles that might answer the question I'm interested in on Quora. It's boring. What should I put in the google chrome console to automate this process? 回答1: After you open the modal where you can request answers from other Quora users enter this in the browser console: document.querySelectorAll(`a[aria-label='Request']`).forEach(el =>{el.click()}) you don't even need to open the console if you add this as

keep session after login - selenium - javascript

﹥>﹥吖頭↗ 提交于 2020-01-22 15:50:08
问题 I am trying to automate couple of pages using selenium web driver and node js . I was able to login , but after login I want to use same session initiated by web driver so that I can do automated testing on session protected page. This is my attempt async function login(){ Let d = await new Builder() .forBrowser('chrome') .build(); await d.get('https://demo.textdomain.com/') await d.findElement(By.id('username')).sendKeys('admin ') await d.findElement(By.id('password')).sendKeys('admin');

Automate Safari web browser using c# on Windows

北慕城南 提交于 2020-01-22 15:27:09
问题 I wondered if anyone had successfully managed, or knew how to automate the Safari web browser on the Windows platform. Ideally I would like to automate Safari in a similar way to using mshtml for Internet Explorer. Failing that a way to inject JavaScript into the running process would also be fine. I've used the JavaScript injection method to automate Firefox via the jssh plug-in. I'm looking to automate the browser using .Net to enhance an existing automation framework WatiN Edit : Whilst I

Automatic web-page refresh using xdotool - not sending key after window focus

旧城冷巷雨未停 提交于 2020-01-22 14:52:38
问题 Given: I have Firefox with the [Firefox Page Title] page open on my Ubuntu computer. Here is my command: xdotool search "[Firefox Page Title]" windowactivate --sync key --clearmodifiers ctrl+r Documentation: xdotool website with documentation/examples is here. Example straight from the xdotool website: # As of version 2.20100623, you can do this simpler version of above: xdotool search "Mozilla Firefox" windowactivate --sync key --clearmodifiers ctrl+l Notes: I'm using xdotool version 2

Automating Review Requests with ReviewBoard and Mercurial using Python hooks

对着背影说爱祢 提交于 2020-01-22 10:07:42
问题 Here is my problem: I got a remote mercurial repository where the hook is gonna be setup either incoming or changegroup, and I got a ReviewBoard setup on a different server. The idea is to automate review request tickets generation upon push from devs into the remote repository. Of course, I would need a hook that invoke post-review that also uses submit-as user which extracted using the mercurial api (ctx.user()), or else all the review requests tickets would be in the name of the user that

Automating Review Requests with ReviewBoard and Mercurial using Python hooks

∥☆過路亽.° 提交于 2020-01-22 10:07:06
问题 Here is my problem: I got a remote mercurial repository where the hook is gonna be setup either incoming or changegroup, and I got a ReviewBoard setup on a different server. The idea is to automate review request tickets generation upon push from devs into the remote repository. Of course, I would need a hook that invoke post-review that also uses submit-as user which extracted using the mercurial api (ctx.user()), or else all the review requests tickets would be in the name of the user that

Automating gmail login [During oAuth] gets blocked with user verification

こ雲淡風輕ζ 提交于 2020-01-22 03:01:18
问题 This code works to login to gmail public void login(User user) { WebDriverWait wait = new WebDriverWait(driver, 60); WebElement emailTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated(By.id("identifierId"))); emailTextBox.sendKeys(user.email); WebElement nextButton = wait.until( ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[contains(text(), 'Next')]"))); nextButton.click(); WebElement passwordTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated

Requiring line of code to select nature of payment from drop down list

时间秒杀一切 提交于 2020-01-22 02:49:26
问题 I complied the below mentiond code line, but it is not working. I'm not able to figure out how to select nature of payment , the nature of payment tab is marked between arrows in the attached image. Sub TDS_Autofill() Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") IE.Visible = True IE.navigate "https://onlineservices.tin.egov-nsdl.com/etaxnew/tdsnontds.jsp" Do While IE.Busy Application.Wait DateAdd("s", 1, Now) Loop Set doc = IE.document doc.parentWindow.execScript