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 clear cache and history in IE browser

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

I am having a same set of of selections but the products are different.
I recorded the first product with some inputs after that am signing out form the application logging in again to record for other product.
recording and all done ,but while executing its showing difierent products but in the finalize page it shows the same count and same product name for the second product .

how to over come that..


Thanks
Murugan

Comments

  • Hi Murugan,

    Can you please let me know what version of Sahi are you using and which browser?

    Could you please be more specific about the issue?

    Regards
    Sumitra
  • Hi,

    Am using sahi Version : V3.5 and IE 8
  • Hi Murugan,

    Can you please be more specific about the issue?

    Could you please tell me what you are trying to do and where exactly you are facing issue?

    Regards
    Sumitra
  • narayannarayan Administrators
    Hi Murugan,

    Hope you have checked that this behaviour happens only when using Sahi and not otherwise.

    To clear browser cache run this command on a command prompt with all IE windows closed.

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

    To clear cookies

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2


    More details on that command can be found here: http://social.msdn.microsoft.com/Forums/en/ieextensiondevelopment/thread/ce81943b-32b8-437b-b620-171c3d5893e7

    Hope that helps.

    Regards,
    Narayan
  • hi,
    My application has parent children hierrachy.ex: Parent 'A' contains 'b','c','d' links as children's in tree view.

    If i select 'b' and doing some selection as in below script its getting recorded and am able to re run that, but if i change the child as 'c' and save that in different sahi file it shows the same selections in the final page with the same count and same 'b' name .

    _setValue(_textbox("ctl00\$cphMainContent\$txtEmail"), "User name ");
    _setValue(_password("ctl00\$cphMainContent\$txtPassword"), "PWD");
    _click(_link("Sign In"));
    _click(_image("GroupTreeA"));
    _Click(_span("b"));
    _click(_span("b card"));
    _click(_div("mainarea"));
    _click(_link("Continue"));
    _setValue(_textbox("FormField"), "TEST");
    _setValue(_textbox("FormField[]"), "TEST1");
    _setValue(_textbox("FormField[]"), "TEST3");
    _setValue(_textbox("FormField[]"), "TEST4");
    _setValue(_textbox("FormField[]"), "TEST5");
    _setValue(_textbox("FormField[]"), "TEST6");
    _setValue(_textbox("FormField[]"), "TEST7");
    _setValue(_textbox("FormField[]"), "TEST8");
    _click(_image("Click to view the image catalog"));
    _popup("ShowImages")._click(_image("Asset Image"));
    _popup("ShowImages")._click(_submit("Select"));
    _click(_imageSubmitButton("ctl00\$cphMainContent\$WizardStepsNav\$MyList\$ctl02\$Imagebutton2"));
    _click(_image("Link popup"));
    _popup("Link popup")._setValue(_textarea("uc\$txtInclude"), "90001\n");
    _popup("Link popup")._setValue(_textarea("uc\$txtInclude"), "53593\n");
    _popup("Link popup")._click(_radio("ucGeography_GeoLevel_Radius"));
    _popup("Link popupr")._setValue(_textbox("uc\$txtRadiusLookup"), "90002");
    _popup("Link popup")._setValue(_textbox("uc\$txtRadiusMiles"), "4");
    _popup("Link popup")._click(_submit("Insert"));
    _popup("Link popup")._click(_imageSubmitButton("Criteria"));
    _popup("Link popup")._click(_imageSubmitButton("Filter"));
    _popup("Link popup")._click(_radio("0"));
    _popup("Link popup")._click(_radio("1"));
    _popup("Link popup")._click(_image("Help"));
    _popup("Link popup")._click(_span("X"));
    _popup("Link popup")._click(_imageSubmitButton("Finalize"));
    _popup("Link popup")._click(_imageSubmitButton("$imgbtnShow"));
    __popup("Link popup")._closeWindow();
    _click(_link("Sign Out"));

    _setValue(_textbox("ctl00\$cphMainContent\$txtEmail"), "User name ");
    _setValue(_password("ctl00\$cphMainContent\$txtPassword"), "PWD");
    _click(_link("Sign In"));
    _click(_image("GroupTreeA"));
    _Click(_span("c"));
    _click(_span("c card"));
    _click(_div("mainarea"));
    _click(_link("Continue"));
    _setValue(_textbox("FormField"), "TEST");
    _setValue(_textbox("FormField[]"), "TEST1");
    _setValue(_textbox("FormField[]"), "TEST3");
    _setValue(_textbox("FormField[]"), "TEST4");
    _setValue(_textbox("FormField[]"), "TEST5");
    _setValue(_textbox("FormField[]"), "TEST6");
    _setValue(_textbox("FormField[]"), "TEST7");
    _setValue(_textbox("FormField[]"), "TEST8");
    _click(_image("Click to view the image catalog"));
    _popup("ShowImages")._click(_image("Asset Image"));
    _popup("ShowImages")._click(_submit("Select"));
    _click(_imageSubmitButton("ctl00\$cphMainContent\$WizardStepsNav\$MyList\$ctl02\$Imagebutton2"));
    _click(_image("Link popup"));
    _popup("Link popup")._setValue(_textarea("uc\$txtInclude"), "90001\n");
    _popup("Link popup")._setValue(_textarea("uc\$txtInclude"), "53593\n");
    _popup("Link popup")._click(_radio("ucGeography_GeoLevel_Radius"));
    _popup("Link popupr")._setValue(_textbox("uc\$txtRadiusLookup"), "90002");
    _popup("Link popup")._setValue(_textbox("uc\$txtRadiusMiles"), "4");
    _popup("Link popup")._click(_submit("Insert"));
    _popup("Link popup")._click(_imageSubmitButton("Criteria"));
    _popup("Link popup")._click(_imageSubmitButton("Filter"));
    _popup("Link popup")._click(_radio("0"));
    _popup("Link popup")._click(_radio("1"));
    _popup("Link popup")._click(_image("Help"));
    _popup("Link popup")._click(_span("X"));
    _popup("Link popup")._click(_imageSubmitButton("Finalize"));
    _popup("Link popup")._click(_imageSubmitButton("$imgbtnShow"));
    __popup("Link popup")._closeWindow();
    _click(_link("Sign Out"));
  • narayannarayan Administrators
    Hi Murugan,

    This is too detailed and we are not able to understand where or what the problem is. Which part of this script is significant? Could you please specify what you want us to look at and help you with?

    Regards,
    Narayan
  • Hi,
    Please refer to the following scenario for which im trying to automate.

    1.USer will select a Prodcut listed under a Product Group which is TreeView ( e.g CCTA)
    2.USer will select postcard (e.g PMI CCTA Postcard)
    3.Then he will click Continue button
    4.User will enter the details in the fields
    5.USer will click Launch button where a tool will open in a pop-up window
    6.Here there will 4 tabs (e.g Geography, Filters, Criteria, Finalize)
    7.Once the Finalize tab is clicke the count will be displayed with the Product Name selected in the first step( e,g. CCTA)
    8.User will Close the pop-up window and Sign out
    9.Next, user will select the 2nd product listed under the same Product Group in that TreeView (.e.g : Heart)
    10.then he will repeat the steps 2-6
    11.Once the Finalize tab is clicked the count will be displayed with Product Name select in the 9th step (e.g Heart) with the different counts.

    i'm facing the problem in the Step 11 where the counts and the product name displayed is wrong. it shows the count and product name previously selected in the Step 1.

    Below are the scripts i'm using. It is working fine if i execute the scripts separately that means saving a single SAHI script file for the each products.

    But if i save the scripts for all the products in a single SAHI script file then i'm facing the above problem.


    Please go through the same and let me know this helps.


    ********************************************************************************************************
    First Product: following are the scripts for the first product under the Group which will be in Tree view

    _click(_link("Sign In"));
    _click(_image("ctl00_cphProductGroups_ctl00_ProductGroupTree_t1c"));
    _click(_span("CCTA"));
    _click(_span("PMI CCTA Postcard v1"));
    _click(_div("mainarea"));
    _click(_link("Continue"));
    _setValue(_textbox("FormField"), "TEST");
    _setValue(_textbox("FormField[1]"), "TEST");
    _setValue(_textbox("FormField[2]"), "TEST");
    _setValue(_textbox("FormField[3]"), "TEST");
    _setValue(_textbox("FormField[4]"), "TEST");
    _setValue(_textbox("FormField[5]"), "TEST");
    _setValue(_textbox("FormField[6]"), "TEST");
    _setValue(_textbox("FormField[7]"), "TEST");
    _click(_image("Click to view the image catalog"));
    _popup("ShowImages")._click(_image("Asset Image"));
    _popup("ShowImages")._click(_submit("Select"));
    _click(_imageSubmitButton("ctl00\$cphMainContent\$WizardStepsNav\$MyList\$ctl02\$Imagebutton2"));
    _click(_image("List Builder"));
    _popup("ListBuilder")._click(_radio("ucGeography_GeoLevel_Radius"));
    _popup("ListBuilder")._setValue(_textbox("ucGeography\$txtRadiusLookup"), "12345");
    _popup("ListBuilder")._setValue(_textbox("ucGeography\$txtRadiusMiles"), "3");
    _popup("ListBuilder")._click(_submit("Insert"));
    _popup("ListBuilder")._click(_radio("ucGeography_GeoLevel_ZIPCODE"));
    _popup("ListBuilder")._setValue(_textarea("ucGeography\$txtInclude"), "12345\n");
    _popup("ListBuilder")._setValue(_textarea("ucGeography\$txtExclude"), "912345\n");
    _popup("ListBuilder")._click(_imageSubmitButton("Criteria"));
    _popup("ListBuilder")._click(_imageSubmitButton("Supression Filter"));
    _popup("ListBuilder")._click(_imageSubmitButton("Finalize"));
    _wait(40000)
    _popup("ListBuilder")._click(_imageSubmitButton("ucDesiredCount\$imgbtnShow"));
    _popup("ListBuilder")._closeWindow();
    _click(_link("Sign Out"));

    After completing the above steps then i want to select the second product under the same product group
    The above scripts will be same apart from the two steps mentioned below

    _click(_span("Heart"));
    _click(_span("Heart Postcard"));

    *********************************************************************************************************
Sign In or Register to comment.