Read and store value, the add the stored value without a number of characters


#1

Hi guys,
I`m trying to make a script which will read content from a specific field from a page and after that paste the content in a text box without some characters . Let’s suppose that the text which must be read is " I have to move in Seattle". I what to paste in a text box only the “in Seattle”.
Is this possible? Can you give me a hit?

{
  "Command": "storeText",
  "Target": "//*[@id=\"context_bar\"]/table/tbody/tr/td[1]",
  "Value": "city"
},
{
  "Command": "type",
  "Target": "id=short_description",
  "Value":  ${city} "
},

Thanks!!


#2

Use the Javascript substring feature, see here: Using an If to check that a string contains a certain substring