Forum Discussion

dale_waterworth's avatar
dale_waterworth
Occasional Contributor
12 years ago

Unable to SetText on input of type="email" in firefox

TC v9.31

Firefox : 26 with latest patch



obj.SetText("my@email.com");



obj is the an input element of type email



this works in IE8 but not Firefox any ideas why?



Thanks

3 Replies

  • karkadil's avatar
    karkadil
    Valued Contributor
    I remember about such problem, but can't reproduce it right now.



    As a workaround, try using Keys method instead of SetText
  • dale_waterworth's avatar
    dale_waterworth
    Occasional Contributor
    Ok thanks. Have gone with:




    function clearTextAndSet(element, str) {


      element.Keys("^[Hold]a[Release][Del]");


      element.Keys(str);


    }