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.

Record not working after reload.

ansaansa Members
edited November -1 in Sahi - Open Source
Hi,

I have a requirement where in, i give the member card id in the first screen and click on submit button, then a search query is fired and gets the member details from the database. Then the page reloads and shows the details. Here I have to click on a button to go to a 3rd page. But unfortunately, the record is not working after the page refreshes. Please help.

Thanks in advance,
Ansa

Comments

  • Hi Ansa,

    Understanding your question above, you are entering some data (member card id) in a fields and submit for the search function in your web page. After page loads-up the controller is not working? If I have correctly understood your problem, then you can try refreshing the controller window using f5 button on your key board or use f5 with ctrl key.

    I tried few time when I record it worked for me.

    Regards,
    Bala
  • bala,

    I tried refershing the controller, but still it is not recording after the reload. The search query is taking a long time to execute and bring back data, about 4 mins. Do you think that might be the issue?

    regards,
    Ansa
  • Any help for this issue??
  • narayannarayan Administrators
    Hi Ansa,

    1) Does the Controller populate the Accessor field correctly if you hover over any element with the CTRL key pressed?
    2) Are you loading the results in an iframe from some other domain/subdomain?
    3) Does the record work for other elements on the same page?

    Regards,
    Narayan
  • Hi Narayan,

    Find inline my comments

    1) Does the Controller populate the Accessor field correctly if you hover over any element with the CTRL key pressed? - This works in the first page. But it doesnt after the reload.
    2) Are you loading the results in an iframe from some other domain/subdomain? - No
    3) Does the record work for other elements on the same page? - Record works only in the first page. once the page is submitted for searching and after reload the record doesnt work.

    I tried recording this in 2 parts and added wait in between as given below. But still it is not working.

    _click(_radio("rbCheckAction[1]"));
    _setValue(_textbox("txtMemberID"), $wcardId);
    _click(_button("Continue"));

    _wait(200000, _assertExists(_heading4("Head Of Household's Information")));
    _click(_radio("pbYes"));
    _click(_button("Continue"));

    After the 3rd step, it gets stuck. I checked the logs and found the below error.

    JSERROR
    Step >_sahi._click(_sahi._radio("pbYes"));< did not complete in 630 seconds. at Nov 22, 2010 4:16:01 PM
Sign In or Register to comment.