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.

next line "\n" is not working on string with latest Firefox browser

jeeva_ecejeeva_ece Members
edited June 2013 in Sahi - Open Source
Hi, Next line character "\n" is not working with latest Firefox browser. I tried with sahi-v44 also. It working perfectly on Firefox 10.x

Issue on,
Browser : Firefox 17.x
OS: RHEL 64 bit
JAVA: JDK 1.7

Answers

  • Java code:
    this.textarea(id).setValue("abc \n bcd");
  • Hi Jeeva,
    The following code works for me with Sahi v4.4 and Firefox 17.0

    browser.navigateTo("http://sahi.co.in/demo/formTest.htm";);
    browser.textarea("ta1").setValue("abc\ndef");

    why are you using "this.textarea()"? Have you extended the Browser class?
  • Hi Pratyush,

    Thank you for your response. I tried with Sahi (Build: 2013-04-29) but it's failed for me. I'm facing the same issue.

    Browser: Firefox ESR 17.0.6
    OS: Red Hat Enterprise Linux Server [Release: 6.4 (Santiago), Kernel: 2.6.32-276.el6.x86_64, GNOME 2.28.2]

    Yes, we have extended Browser class.
  • Hi jeeva,
    Please send us a screenshot of what you see.

    Regards.
  • You can use imgur.com to give us a link for the screenshot.
  • Hi Pratyush,

    Screenshot is on http://imgur.com/OwM712z
Sign In or Register to comment.