meenakshiyadav1
6 years agoContributor
How to remove unwanted "/" from a string
I am using FullName property of a label object and then splitting the string to get the Full Name of Dynamic parent.
This FullName Property returning the string as :"Mobile.Device(\"iPad\").Process(\"iA360 StageTest\").Window(0).TableView(0).TableViewCell(0, 2). Label(\"Gallo PICO\", 0)".
I am unable to remove "\" from the string using replace method or split method of javascript.Aways getting syntax error because of "\'. Can some guide me how can I remove "\" from the above string and get below string
"Mobile.Device("iPad").Process("iA360 StageTest").Window(0).TableView(0).TableViewCell(0, 2). Label("Gallo PICO", 0)".
Thanks in advance.