The xpath of my elements becomes extremely difficult to read.
// DIV [ID = @ 'main_content'] / div [2] / div [2] / div [2] / div [4] / table / TBODY / mp [2] / TD / form / FIELDSET / p [1 ]/input
It would be nice if I could store most of this as a variable and use it later as follows:
| assertElementPresent | $ {myForm} ./ fieldset / p [1] / input |
Is something like this possible? That would make my tests much easier to read!
source
share