Hi All,
I want to replace my text
placeholder=“robot” with placeholder=“testRobot”
How it can be done?
Pls suggest
Hi All,
I want to replace my text
placeholder=“robot” with placeholder=“testRobot”
How it can be done?
Pls suggest
hi @somya177
you can assign…
placeholder.Replace(“robot”,“textRobot”)
hello @monika.c
you can do it as below
Placeholder = “robot”
placeholder = placeholder.replace(“robot”, “testRobot”)
Regards
Ajay
this is a variable value and will be changed every time… so I can’t hardcode it…next time it Can be placeholder=“uipath”
Hi @somya177
TestRobot is a variable value and will be overwritten
Hi @somya177 ,
First, assign the value, which is changing every time in a variable. Like
‘variable1’=‘that mentioned value’
Now, assign like the below -
‘placeholder’ = ‘variable1’
Thanks & Regards,
Apurba
actually it is overwriting the placeholder, my requirement is to change the value placed in between the quotes of placeholder with the variable value
if it’s placeholder=“robot”
then if I pass variable value to be “Uipath”
then it should display placeholder=“Uipath”
I tried this…but it is showing error: htmlText.Replace(“placeholder=”,“placeholder="”+value+“"”)
it overwritten my whole webpage…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.