profile
viewpoint

Ask questionsHow to extract substring from Main string in Selenium IDE Record and Play?

I have text "Welcome to the Automation World". Now i want to extract the word "Automation" from the main string in new Selenium IDE Record and Play using execute script, but not working. Can one help me with example..thanks in advance.

store | Welcome to the Automation World | asset execute script | return "${asset}".substring(0,17) | vartest echo ${vartest}

output.. executeScript on return "${asset}".substring(0,9) with value vartest OK echo: arguments[0]

SeleniumHQ/selenium-ide

Answer questions Kumar2k17

Thank you so much for you reply. I found this. But I'm getting a error when I'm trying to extract the substring

execute script | return ${asset}.substring(0,17) | vartest

Failed: Unexpected token in JSON at position 33

useful!

Related questions

Selenium-side-runner takes long time to start tests hot 1
How to make selenium-side-runner run headless? hot 1
Tests don't run in command line (.setRect is not a function) hot 1
: Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Error: hot 1
Tests don't run in command line (.setRect is not a function) hot 1
Build concurrency hot 1
FileRead command hot 1
Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Error: hot 1
: Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.Error: hot 1
Selenium IDE freezes after a file download is executed hot 1
Default save uses extension ".txt" and subsequently fails to open the same file hot 1
Runner support for insecure certificates on Firefox hot 1
Can't find closure dependency bot hot 1
copy/cut/paste multiple commands hot 1
Getting error while running selenium-side-runner *.side. hot 1
Github User Rank List