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.

Chrome,Opera,Safari execute javascript not working

yungchiyungchi Members
edited September 2012 in Sahi - Open Source
OS - Win XP
Sahi OS 3.5(free)

I try to click button(using execute javasecipt) in iframe. IE and FireFox can work but Chrome,Opera,Safari can not work
(IE and FireFox execute javascript can pop OS windows)

/***** HTML part content *****/
<iframe id="ifrMain" scrolling="auto" frameborder="0" src="iss/898_ssl.html">
<form id="formssl_Download_cert" action="../../form/ssl_Certificate_Download_Apply" enctype="multipart/form-data" method="post" name="formssl_Download_cert">
<table class="layoutTable">
<input id="Certificate_name" type="file" value="" valid="filepath" onkeydown="denyInput(event)" name="Certificate_name">
</table>
</form>
<form id="formssl_Download_key" action="../../form/ssl_Key_Download_Apply" enctype="multipart/form-data" method="post" name="formssl_Download_key">
</body>
</html>
</iframe>
/***** HTML part content *****/

/***** part codes *****/
browser.execute("document.getElementById('ifrMain').contentDocument.
getElementById('Certificate_name').click();");
/***** part codes *****/

Comments

  • I have the same issue. I would like to know Does Sahi really works on Safari & Chrome browsers on Windows?

    I believe this is a certification issue. I did try to follow the video & some forum suggestions to add certification manually from sahi dashboard for all these browser. First of all for Safari & chrome It does not add certificate and gives following error,
    The site's security certificate is not trusted!
    You attempted to reach ajax.googleapis.com, but the server presented a certificate issued by an entity that is not trusted by your computer's operating system. This may mean that the server has generated its own security credentials, which Google Chrome cannot rely on for identity information, or an attacker may be trying to intercept your communications.
    You cannot proceed because the website operator has requested heightened security for this domain.

    This webpage is not available
    The webpage at https://ajax.google.com/_s_/dyn/SSLManager_success?domain=ajax.google.com might be temporarily down or it may have moved permanently to a new web address.
    Error 501 (net::ERR_INSECURE_RESPONSE): Unknown error.

    hence none of my javascript works [Ajax call does not work] This is weird. because it use to work in previous version of sahi.
    If it does not support multiple browser smoothly it is difficult to use this tool.

    Can someone suggest a solution for this?
  • For Safari>Record Tab> mouseover does not work hence some actions like click on checkbox does not work. Not sure if the issues are related to one problem. I am using Open source tool.
  • narayannarayan Administrators
    Yungchi and Keats, could you check if things work fine with Sahi Pro? If you use a lot of https, all of us can benefit from using Sahi Pro! :)
  • Hi Narayan,

    Are you saying there is a bug in Sahi OS for opertaing on chrome and Safari? I sort of fixed this issue yesterday by adding certificate manually. But It broke again today.

    I tried Sahi Pro today and there are few things i have to change in my script, I don't have enough time for that for now. I will look into sahi pro later. Right now i was hoping I will get some solution quickly.

    Please help.
Sign In or Register to comment.