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.

how to click back button in Mozilla using sahi

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



In selenium i am using "driver.navigate().back();" for going back to previous page.

In the same way how can i achieve this with sahi.

Comments

  • Hi Sumitra,

    I have checked with this links, they are using _call(goBack()) and _call(history.back());

    but i am getting any method like browser.call() in javacode of sahi.
  • Hi Sumitra,

    I am using Eclipse and in Eclipse i have to use only java mode commands like.

    browser=new Browser("firefox");
    browser.open();
    browser.navigateTo("http://www.satyapaul.com";);

    so, please send me the java mode commands in your replies,because _call(goBack()) and _call(history.back()); are not working in java mode commands

    Regards,
    Madan
  • Hi Madan,

    The code below works for me:
    browser.navigateTo("http://www.satyapaul.com");
    browser.navigateTo("http://sahi.co.in");
    browser.execute("_sahi._call(history.back())");
    browser.waitFor(2000);
    

    Check if this solves your issue.

    Regards
    Sumitra
  • Hi Sumitra,

    Now its working fine, ThankQ very much.

    Regards,
    Madan
This discussion has been closed.