Browse Prior Art Database

Using DomPath to locate translated text automatically Disclosure Number: IPCOM000239509D
Publication Date: 2014-Nov-13
Document File: 6 page(s) / 73K

Publishing Venue

The Prior Art Database


When do the translation work of web page,it takes a lot of efforts for development team to shot the screen and highlight the text ,which is translated, for the translation testers. This disclosure tries to provide a method to do this work efficiently. Record and replay mechanism is used, so that developer , who is assigned to do this work, be able to record the operation on one language, and then replay it on other language. DomPath is used to locate the translated text. A special event is designed to tell the tool to excute the screenshot.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 01 of 6

Using DomPath to locate translated text automatically

In translation process, when the translation files come back to the development team, the development team needs to screen shot pictures on the web application to show the translation message, also need to mark the translation part with red rectangle.

Our invention can perfectly solve the automation of the marking red rectangle part. In our invention, the users mark the location of text on the web application in the record phase, the tool will detect the HTML element ,which contains the translated text. The tag will be used to draw the red rectangle that around the translated text with the appropriate size in the replay phase .

DomPath is introduced to record the information of the detected HTML element . It is the path of the DOM element from the root element to this particular element itself. For example, an input element could be identified as root/child1/child2/../child n(where child n is the input element) in the DOM tree. The advantage of this method is that the DOM elements don't always have a unique id so it is very hard to find the required element.

There are two major steps to get the screenshot of target text. First record the the testcase leading to the target text. During the record, when the text show up on the screen, press F8(any key else is OK, it is configurable) to set up a event. The users mark the location of the text, tool will detect the HTML element and its domPath is recorded at this time. When recording finished, a script is generated. It simulates the user operation in the pages and the key-pressed event that recorded domPath. In the second step, the script is played and the web page would be navigated automatically. When script goes to the places that has the particular key-press event, it reads the domPath and change the CSS of the element that the domPath pointing to. For example, a red frame is added to show the text that have been translated. And it is very clear to see which part of the web page contains the text that need to be checked.

The advantage of the second step is that the target text could be found out and marked automaticall...