18 January 2026:


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.

Issue with capturing XML attribute(node) values

ManishOjhaManishOjha Members
edited November -1 in Sahi - Open Source
Hi All,

I am capturing XML data file in a variable for a bar graph and using _alert() function, at runtime its showing all nodes values in XML file. Now i want to capture all nodes values separately so that i would be able to use _assertEqual() to check them. Currently i am trying to access those nodes value by using that "variable name" + ". Operator" + "node name",
Like ,
var $pieObj = eval("(" + $pieJSONObject.reviewCount + ")");

But at run time $pieObj is giving NULL value.

Comments

  • Hi,
    I want to set proxy setting through java code or using build.xml. But i am not able to set I have written following code for browser IE, Chrome, Safari, Opera to enable proxy through java code.

    Runtime.getRuntime().exec(new String[]{"D:\\Sahi\\tools\\toggle_IE_proxy.exe", "enable"});
    Thread.sleep(5000);

    and following setting i did in build.xml

    <!--Proxy Executing -->
    <target name="proxyon">
    <exec executable="D:/Sahi/tools/toggle_IE_proxy.exe">
    <arg value="enable"/>
    </exec>
    </target>
    <target name="proxyoff">
    <exec executable="D:/Sahi/tools/toggle_IE_proxy.exe">
    <arg value="disable"/>
    </exec>
    </target>

    we are using htts(secure) url. Please give me some solution for this.
  • Hi kundankrbharti,

    Please create a new forum post.

    Try with the latest version of Sahi.

    Sahi automatically modifies the proxy settings before launching browser.

    Regards
    Sumitra
Sign In or Register to comment.