Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 997 by [email protected]: Allow comments in the *** Variables ***
section
http://code.google.com/p/robotframework/issues/detail?id=997
Most elements in our application do not have a good name or id so I am
having to use xpath. In order to facilitate any future changes to our
application I am creating an object library to define all objects.
I would like the ability to add comments to these. I currently have a
workaround by just adding a variable called ${comment}.
Here is an example. Keep in mind I use Notepad++ to code so every time I
use "comment" all the text (including the word comment) after it is in a
color of my choice to make it easier to see them. In my case it is blue.
*** Variables ***
${comment} comment Element tabs across the top of each page.
${eCMainTab_Home}= xpath=/html/body/div[2]/div/div/a
${eCMainTab_Matters}= xpath=/html/body/div[2]/div/div[2]/a
${eCMainTab_People}= xpath=/html/body/div[2]/div/div[3]/a
${eCMainTab_Entities}= xpath=/html/body/div[2]/div/div[4]/a
${eCMainTab_Invoices}= xpath=/html/body/div[2]/div/div[5]/a
${eCMainTab_Calendar}= xpath=/html/body/div[2]/div/div[6]/a
${eCMainTab_Reports}= xpath=/html/body/div[2]/div/div[7]/a
${eCMainTab_Search}= xpath=/html/body/div[2]/div/div[8]/a
${eCMainTab_Wizards}= xpath=/html/body/div[2]/div/div[9]/a
${eCMainTab_Notes}= xpath=/html/body/div[2]/div/div[10]/a
${eCMainTab_AnalysisCenter}= xpath=/html/body/div[2]/div/div[11]/a
${comment} comment Home Section
${HomeBlueCaption}= xpath=/html/body/div[3]/div[2]/div/h1
${comment} comment ************************** MATTERS SECTION
********************************************
${comment} comment Matters Search Screen
${MatterBlueCaption}= xpath=//*[@id="BlueMastCaption"]
${MatterNewButton}= xpath=//*[@id="NewBtn"]
${MatterDeleteButton}= xpath=//*[@id="DeleteBtn"]
${MatterCopyButton}= xpath=//*[@id="CopyBtn"]
${MatterExportButton}= xpath=//*[@id="ExportToExcelBtn"]