18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Need to remove double quotes (" "), for using wildcard expression.
Hi All,
I want to use wildcard expression in my code. Suppose, if there is a div element, named as "Host"(in first row of a table), sahi identifies this element as, _div("HostHost|1").
Here, I want to use wildcard expression as _div(/Host/)...
My problem is that, I am entering element's name in code, from an array, so my code line becomes:
_div(/$host[0]/)...
and Sahi decodes/interprets this line as _div(/"Host"/).
So, double quotes (" ") are also entertained with array value and due to that wildcard expression does not work.
Is there any way to remove double quotes from an array value?
I want to use wildcard expression in my code. Suppose, if there is a div element, named as "Host"(in first row of a table), sahi identifies this element as, _div("HostHost|1").
Here, I want to use wildcard expression as _div(/Host/)...
My problem is that, I am entering element's name in code, from an array, so my code line becomes:
_div(/$host[0]/)...
and Sahi decodes/interprets this line as _div(/"Host"/).
So, double quotes (" ") are also entertained with array value and due to that wildcard expression does not work.
Is there any way to remove double quotes from an array value?
Comments
Use: _div("/" + $host + "/") and check if it solves your issue.
Regards
Sumitra