automation

How to compare two images in Robot Framework

筅森魡賤 提交于 2019-12-21 23:31:50
问题 I am new in automation and want to automate a site whose back-end in HTML5 and containing canvas element. I want to compare canvas images with my stored image. For image comparison I need to use robot framework. I had tried with "robotframework-imagehorizonlibrary" library but still testcases were failed. Can any one please help me. Thanks. 回答1: I would suggest the RobotAppEyes Library , which is basically an extended version of Selenium2 library, and it actually has a keyword named Compare

Ansible - Download latest release binary from Github repo

你说的曾经没有我的故事 提交于 2019-12-21 20:30:05
问题 With Ansible please advise how i could download the latest release binary from Github repository. As per my current understanding the steps would be: a. get URL of latest release b. download the release For a. I have something like which does not provide the actual release (ex. v0.11.53): - name: get latest Gogs release local_action: module: uri url: https://github.com/gogits/gogs/releases/latest method: GET follow_redirects: no status_code: 301 register: release_url For b. I have the below

Ansible - Download latest release binary from Github repo

Deadly 提交于 2019-12-21 20:29:34
问题 With Ansible please advise how i could download the latest release binary from Github repository. As per my current understanding the steps would be: a. get URL of latest release b. download the release For a. I have something like which does not provide the actual release (ex. v0.11.53): - name: get latest Gogs release local_action: module: uri url: https://github.com/gogits/gogs/releases/latest method: GET follow_redirects: no status_code: 301 register: release_url For b. I have the below

Interacting with JavaScript drop down menu using WebDriver and Ruby?

风格不统一 提交于 2019-12-21 20:23:12
问题 I'm writing automation for a web page using Ruby and Selenium WebDriver but have encountered a blocking issue with some of the drop downs on the site which are made using JavaScript instead of standard HTML. On these drop downs users are able to select an option from the drop down or click on it and start typing for it to filter results based on what is typed (I'm assuming the idea is these drop downs are for potentially very long lists of options). Problem is I can't figure out a way to

win32: moving mouse with SetCursorPos vs. mouse_event

丶灬走出姿态 提交于 2019-12-21 20:01:12
问题 Is there any difference between moving the mouse in windows using the following two techniques? win32api.SetCursorPos((x,y)) vs: nx = x*65535/win32api.GetSystemMetrics(0) ny = y*65535/win32api.GetSystemMetrics(1) win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE|win32con.MOUSEEVENTF_MOVE,nx,ny) Does anything happen differently in the way Windows processes the movements? 回答1: I believe that mouse_event works by inserting the events into the mouse input stream where as SetCursorPos just moves

Python & MS Word: Convert .doc to .docx?

泪湿孤枕 提交于 2019-12-21 19:53:59
问题 I found several questions that were similar to mine, but none of the answers came close to what I need. Specifications: I'm working with Python 3 and do not have MS Word. My programming machine is running OS X and cloud machine is linux/ubuntu too. I'm using python-docx to extract values from a .doc file that is sent to me nightly. However, python-docx only works with .docx files, so I need to convert the file to that extension first. So, I've got a .doc file that I need to convert to .docx .

Automatically filling out web forms and returning the resulting page

前提是你 提交于 2019-12-21 19:21:06
问题 This is my first time posting here. I greatly appreciate any and all guidance on this subject. I'm trying to make a program that automatically fills in web forms and submits the data, returning the resulting page to the program so it can continue to 'browse' the page, allowing it to recursively submit even more data. The main problems I'm having are: The 'submit' button is coded in Javascript, so I don't know where the form data goes when making the page request. I want to fill in the forms

Automatically filling out web forms and returning the resulting page

女生的网名这么多〃 提交于 2019-12-21 19:20:10
问题 This is my first time posting here. I greatly appreciate any and all guidance on this subject. I'm trying to make a program that automatically fills in web forms and submits the data, returning the resulting page to the program so it can continue to 'browse' the page, allowing it to recursively submit even more data. The main problems I'm having are: The 'submit' button is coded in Javascript, so I don't know where the form data goes when making the page request. I want to fill in the forms

StaleElementReferenceException: Element is no longer attached to the DOM: Selenium

不羁岁月 提交于 2019-12-21 17:47:07
问题 I am completely new to automation testing. After referring some tutorials, I have created an automated test case. The test case I try to automate is to check whether the sorting worked correctly after I click on one of the headers of a table. My automated test case fails with the following exception: org.openqa.selenium.StaleElementReferenceException: Element is no longer attached to the DOM Command duration or timeout: 12 milliseconds For documentation on this error, please visit: http:/

Create Word 2010 Document Programmatically

笑着哭i 提交于 2019-12-21 17:42:34
问题 Every week I produce a word document with some copy, tables and charts from various sources on our network. It can take a bit of time and sometimes I make mistakes or forget stuff that should go in. I want to automate this process as much as possible. So basically I want to make a Word Template or Console App that when I open/run it it goes off and collects all this stuff and links it into the various parts of the document. Assume I have to insert: Some copy from another Word document A PNG