Display results as :

Rechercher Advanced Search

Latest topics

Help with variables

View previous topic View next topic Go down

Help with variables

Post by DHHJ on Sun Jun 30, 2013 3:26 am

I am writing test scripts using Webdriver inside of a Pentaho development environment- all code is in javascript.
 I have declared a variable in my js code and now need to put this variable inside a selenium.runScript command for further testing on a web page. 

The variable that I define is not available to the runScript. I guess I need something like a global variable that can cross over between my js and the runScript.

I hope this makes sense! Please provide some help!!!!

var test = 'Test input'

I have tried both HTMLUnit and FireFox drivers.



Posts : 8
Join date : 2013-03-14

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum