Search code examples
internet-explorercucumberwatir-webdriverpage-object-gem

Watir Webdriver Text Input Slow on IE


I'm using Cucumber and Watir-Webdriver to create some automated tests. I am also using the PageObject gem. Some Example code is below

require 'page-object'

class LoginPage
    include PageObject

    text_field(:username, :name => 'username')
    text_field(:password, :name => 'password')
    link(:login, :text => 'SIGN IN')
end

browser = Watir::Browser.new
browser.goto "MyWebAppLoginScreen"
login_page = LoginPage.new(browser)
login_page.username="MyUserName"
login_page.password="MyPass"
login_page.login

The Problem that I'm seeing is that it takes a really long time to input the text into the username/password fields in IE (Version 11). I have also tested with Firefox and Chrome and the text is input immediately. In IE, however, it enters the text character by character and each character takes roughly 10 - 15 seconds to be put in. This drastically slows down the runtime of my tests in IE. Has anyone else encountered this? Any ideas on how to fix it? I tried using the browser.speed = :zippy option but this does not seem to help.


Solution

  • Yeah it is the 64 bit IEDriverServer. Something about IE's content handling and other technical jargon. But I deleted the 64 bit driver and downloaded the 32 bit one and now it is working just as well as chrome and firefox. Here is a link to all the files.

    http://selenium-release.storage.googleapis.com/index.html

    Also note for work reasons I am using IE10 but its something to try if your on IE11