[
http://jira.openqa.org/browse/WTR-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20230#action_20230
]
Jarmo Pertman commented on WTR-397:
-----------------------------------
I looked into that issue and noticed that most time is spent for invoking
javascript key press events and then waiting for them to complete. I'm not sure
if IE-Watir waits for them to complete or not, but i tried with commenting out
"wait() if wait" line in firewatir/element.rb:
https://github.com/bret/watir/blob/master/firewatir/lib/firewatir/element.rb#L897
That managed to speed up the text entry 2-3 times. It is still a lot slower
than IE-Watir though. It just seems that invoking those events itself is also
slower due to the fact that after each event a result is read back (if that
would be omitted then i saw other strange failures).
If i commented out the abovementioned "wait" line then all firewatir tests were
passing to me. I wonder if that means that there isn't any test, which could
provide the situation where it might fail or if we could actually omit that
line at all. Any thoughts?
> How to speed up text field data entry
> -------------------------------------
>
> Key: WTR-397
> URL: http://jira.openqa.org/browse/WTR-397
> Project: Watir
> Issue Type: Bug
> Components: FireWatir
> Affects Versions: Open QA Migration
> Environment: windows
> Reporter: Zeljko
>
> - moved from http://code.google.com/p/firewatir/issues/detail?id=78
> Issue 78: How to speed up text field data entry
> 4 people starred this issue and may be notified of changes.
> Status: New
> Owner: ----
> Type-Defect
> Priority-Medium
> Reported by restagner, Aug 11, 2008
> What steps will reproduce the problem?
> 1. Create identical scripts for Watir/Firewatir that use data entry into
> text fields
> 2. Execute scripts
> What is the expected output? What do you see instead?
> I'd like to see the same speed/performance that Watir provides.
> What version of the product are you using? On what operating system?
> firewatir-1.2.0, Windows XP
> Please provide any additional information below.
> I'm using both Watir and FireWatir. I've developed a script that
> works well with both APIs. However, it seems that when the script is
> executed in FireWatir, the speed with which data is entered into text
> fields is *really* slow. Anybody out there know how I can speed up
> data entry into text fields for FireWatir. I've tried using
> text_field.value='my value'
> instead of
> text_field.set 'my value'
> However, it appears that using .value= results in the script missing
> some of the web app's triggering events. Any help on this would be
> greatly appreciated.
> Regards,
> Robert
> ---
> Comment 1 by robblovell, Aug 25, 2008
> I have noticed VERY slow text entry on a windows Server 2003 box with firefox
> 2.0.0.16 and firewatir 1.2.1 (it also ran slow with 1.1.1) and
> jssh-WINNT-2.x.xpi.
> The code runs from a ruby-rails application. The same code works fast on os/x
> with
> the same firefox/firewatir versions. I have a linux install as well, with a
> self
> built version of firefox 3.0 with jssh following the instructions here:
> (http://ubuntu-snippets.blogspot.com/2008/07/build-firefox-3-web-browser-with-jssh.html).
> This setup also runs very slowly at times for text entry with firewatir 1.2.0.
> The behavior isn't consistent, sometimes it runs at normal speed, sometimes
> in super
> slow-mo.
> Any help or clues would be appreciated as to why firewatir-jssh/firefox may
> run super
> slow.
> ---
> Comment 2 by robblovell, Aug 25, 2008
> here is another person who experienced a slow down:
> http://www.io.com/~wazmo/blog/archives/2007_11.html
> ---
> Comment 3 by talksense101, May 12, 2009
> I use ruby 1.8.7 on Windows with Firefox 3.0.10 and the current version of
> Firewatir
> as on May 12,2009. Same issue with text_field.set "xyz". It is too slow.
> ---
> Comment 4 by juliomonteiro, Sep 17, 2009
> Really slow. My SafariWatir (Mac OS X 10.6 + Safari) needs 50 seconds to run
> a bunch of tests, which FireWatir (at
> Ubuntu 9.04 + Firefox 3) needs 5 minutes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development