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.

Values of combobox aren't loaded with using Sahi

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

I have problem with testing a page which using ajax loading of values to combobox.

Problem is following:
I have 2 comboboxes and the second is depended on the first. I select something in the first combobox and It should cause load of values into the second combobox. But If I select something in the first combo nothing is happen with the second.

The problem page is generali.cz/Portal/Online/ipov.nsf/step02c
if I select something in the combobox "Druh vozidla:", combobox "Kategorie vozidla:" should load some values.

Know anyone what is wrong?

Thanks
Martin

Comments

  • narayannarayan Administrators
    Hi Martin,

    Click on the Configure link on Dashboard, click on "download_contenttypes.txt" on the left. It will show a few content-types. Delete
    application/octet-stream
    from the list. Click "Save", restart Sahi, and your app should work.

    Explanation:
    Sahi automatically guesses and downloads files that cannot be rendered on the browser. This is used to handle file downloads. But in your case the response headers for the jquery files did not have any Content-Type. So Sahi assumed it to be a downloadable file and downloaded it in the proxy. Since the js files were not available on the browser all jquery related content was failing. Removing application/octet-stream from the list makes sure that the jquery content goes through to the browser. (If no content-type is specified, Sahi defaults it to application/octet-stream).

    Regards,
    Narayan
  • MarSilMarSil Members
    Now it works. Thank you

    Martin
This discussion has been closed.