variables - selenium pass value from a file -
i trying pass value test case file. here have worked on little example, created js file content,
var sch = 'java'; // sch.js , added ide options - selenium ide extension
i have attached test case , result got. variable value not read ide.
you need add together 1 more command:
storeeval | sch | sch
to read variable js-file.
please note, need save test, restart selenium ide , open test 1 time again right saving of selenium ide extensions.
this code works:
<tr> <td>open</td> <td>/</td> <td></td> </tr> <tr> <td>storeeval</td> <td>sch</td> <td>sch</td> </tr> <tr> <td>type</td> <td>id=gbqfq</td> <td>${sch}</td> </tr>
variables testing selenium automation
No comments:
Post a Comment