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.

_near and _in

varsha.p.jagtapvarsha.p.jagtap Members
edited November -1 in Sahi - Open Source
Hi are thse feature avilable in Shi pro
we are using sahi which we downloaded 2 months back

Comments

  • <input type="hidden" id="strLevelOfKnowledge" name="strLevelOfKnowledge" value="AGGRE">
    i want tp select HTML near to this
  • narayannarayan Administrators
    Hi Varsha,

    1) _near and _in are available in open source Sahi too.

    2) Can you specify what you tried and what the result was?

    Regards,
    Narayan
  • i need to click Div denomination near this field.
    _click(_div("Denomination"),_in(_hidden("strLevelOfKnowledge")),_near(_label("Calculate Outages By:")));

    There are three donomination (in three diffenrent column).
    I want to click one near to ("strLevelOfKnowledge.
    but it is not identifying this one.

    Also m getting below error for one specific page


    You need an external proxy to be configured.
    If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.

    You can configure the external proxy by editing
    <sahi_root>/userdata/config/userdata.properties and setting these properties:


    ext.http.proxy.enable=true
    ext.http.proxy.host=external_proxy_server_hostname_or_ip
    ext.http.proxy.port=external_proxy_server_port


    If your proxy needs authorization, you should set these properties too.


    ext.http.proxy.auth.enable=true
    ext.http.proxy.auth.name=proxy_authorization_username
    ext.http.proxy.auth.password=proxy_authorization_password


    You should do the same with ext.https settings for https sites.

    To bypass external proxy for some web addresses, like local addresses, set


    ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com



    - hide stacktrace
    + show stacktrace
    java.io.EOFException
    at java.util.zip.GZIPInputStream.readUByte(Unknown Source)
    at java.util.zip.GZIPInputStream.readUShort(Unknown Source)
    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:141)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:81)
    at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:142)
    at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:93)
    at java.lang.Thread.run(Unknown Source)
  • Hi after navigating to
    particular page below error is displayed

    Sahi Error - null
    Sahi could not connect to the desired URL


    Either the remote server is down or not reachable
    If the web site is not accessible even when the browser proxy configuration is removed, it means the server is down.
    or


    You need an external proxy to be configured.
    If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.

    You can configure the external proxy by editing
    <sahi_root>/userdata/config/userdata.properties and setting these properties:


    ext.http.proxy.enable=true
    ext.http.proxy.host=external_proxy_server_hostname_or_ip
    ext.http.proxy.port=external_proxy_server_port


    If your proxy needs authorization, you should set these properties too.


    ext.http.proxy.auth.enable=true
    ext.http.proxy.auth.name=proxy_authorization_username
    ext.http.proxy.auth.password=proxy_authorization_password


    You should do the same with ext.https settings for https sites.

    To bypass external proxy for some web addresses, like local addresses, set


    ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com



    - hide stacktrace
    + show stacktrace
    java.io.EOFException
    at java.util.zip.GZIPInputStream.readUByte(Unknown Source)
    at java.util.zip.GZIPInputStream.readUShort(Unknown Source)
    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:141)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:81)
    at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:142)
    at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:93)
    at java.lang.Thread.run(Unknown Source)
Sign In or Register to comment.