How to store substring?

View: New views
1 Messages — Rating Filter:   Alert me  

How to store substring?

by Sezi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to aply java function substring() on 'variable' defined by xpath syntax like this

...
|storeValue | name | wholeName |
|store | javascript{wholeName.substring(1,5)} | substring |
...

Selenium replies that "wholeName is not defined". How to solve this problem?

Thanks a lot