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.

Session Problem

Azhaguvel.AAzhaguvel.A Members
edited November -1 in Sahi - Open Source
Hi All,

Can any one help me, How to solve this?

I have open browser through sahi java code with help of URL like http://100.10.1.1:8080/GUI/.
URL little bit changed When I go to next page like http://100.10.1.1:8080/GUI/?bid=1318586964854
after that i am not able to access sahi API with that page.

Regards,
Azhaguvel.A

Comments

  • Hi Azhaguvel.A,

    Can you please let me know which Sahi API you are not able to access on http://100.10.1.1:8080/GUI/?bid=1318586964854?

    Also, let me know what exactly you are tying to do on this page?

    Regards
    Sumitra
  • Hi Sumitra,

    I want click an image on that page but I didn't .Is there any problem to change session id dynamically when It opening a new page?

    Thanks & Regards,
    Azhaguvel.A
  • Hi Azhaguvel.A,

    Can you check if the next page contains any iframe? If so then add the source of the iframe in domainfix.txt by naviagting to <sahi-home>/userdata/config/domainfix.txt.

    Regards
    Sumitra
  • Hi Sumitra,

    Can you give an any sample code and How to add domain in domainfix.txt.

    Thanks,
    Azhaguvel.A
  • Hi Azhaguvel,

    The following url might resolve your issue.

    http://sahi.co.in/forums/viewtopic.php?id=2384

    It describes the process of adding the URL pattern and base domain to sahi/userdata/config/domainfix.txt


    Regards,
    Theeran.
  • narayannarayan Administrators
    Hi Azhaguvel,

    Your problem may or may not need changes to domainfix.txt

    It may be as simple as clearing browser cache and trying again. Are other elements on the browser being recognized? Session ids etc. are mostly not related to this.

    Regards,
    Narayan
Sign In or Register to comment.