Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


IE and native events

View previous topic View next topic Go down

IE and native events

Post by zlos7ar on Mon Mar 05, 2012 8:55 pm

Right now I build a test with firefox driver and everything works fine. But I want to rework the test so I can also run it in IE.

public class SubmitIdea extends SeleneseTestBase {
   public void setUp() throws Exception {
      WebDriver driver = new InternetExplorerDriver();
      String baseUrl = "";
      selenium = new WebDriverBackedSelenium(driver, baseUrl);

   public void testSubmitIdea() throws Exception {"/login.php");
      selenium.type("name=login_user", "admin");
      selenium.type("//*[@id='content-container']/div[1]/form/div[2]/div[2]/input", "password");" > input[name=\"submit\"]");
And it fails at the first selenium.type command. I think that the problem is that IE uses native events to perform mouse and keyboard operations in the browser. But I could not find any information about how to use those native events and actually how they look like ?

Native Events and Internet Explorer
As the InternetExplorerDriver is Windows-only, it attempts to use so-called "native", or OS-level events to perform mouse and keyboard operations in the browser. This is in contrast to using simulated JavaScript events for the same operations. The advantage of using native events is that it does not rely on the JavaScript sandbox, and it ensures proper JavaScript event propagation within the browser. However, there are currently some issues with mouse events when the IE browser window does not have focus, and when attempting to hover over elements.

Thats all the information I found about native events and IE. Anyone can tell me where I can find more information about this ? And maybe some examples ?


Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum