Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

IE and native events Empty IE and native events

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.
Code:

public class SubmitIdea extends SeleneseTestBase {
   @Before
   public void setUp() throws Exception {
      WebDriver driver = new InternetExplorerDriver();
      String baseUrl = "https://website.com";
      selenium = new WebDriverBackedSelenium(driver, baseUrl);
   }

   @Test
   public void testSubmitIdea() throws Exception {
      selenium.open("/login.php");
      selenium.type("name=login_user", "admin");
      selenium.type("//*[@id='content-container']/div[1]/form/div[2]/div[2]/input", "password");
      selenium.click("css=div.center > 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 ?

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