IEDriver native evenets on http://demos.telerik.com/kendo-ui/grid/editing-inline

39 views
Skip to first unread message

hadar

unread,
Aug 2, 2015, 8:14:57 AM8/2/15
to Selenium Users
Hi,

I am running my tests using Chrome and IE11.
With Chrome it works OK.

ON IE11 I use nativeEvenets=false.
I have kendo grid that I has text area I want to edit.
The sendKeys works OK but when click on "Save" the data is not saved.

Below there is example code using kendo demo page.
If I set nativeEvenets to true the update works OK but it cause to many other things to fail.
In the kendo page it cause the buttons to be click all the time.

Can I trigger the event by JavaScript or the is other solution ?

Thanks



        final DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
        //capabilities.setCapability("nativeEvents", false);
        capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
        WebDriver driver = new InternetExplorerDriver(capabilities);
        driver.get("http://demos.telerik.com/kendo-ui/grid/editing-inline");
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[1]/td[5]/a[1]")).click();
        Thread.sleep(1000);
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[1]/td[1]/input")).sendKeys("Mila");
        Thread.sleep(1000);
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[1]/td[5]/a[1]")).click();
        Thread.sleep(1000);
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[2]/td[5]/a[1]")).click();
        Thread.sleep(1000);
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[2]/td[1]/input")).sendKeys("SuperMila");
        Thread.sleep(1000);
        driver.findElement(By.xpath(".//*[@id='grid']/div[3]/table/tbody/tr[2]/td[5]/a[1]")).click();
        Thread.sleep(1000);

Xiang Dong

unread,
Aug 3, 2015, 4:51:30 AM8/3/15
to seleniu...@googlegroups.com
looks javascript send click event does not work, it seems the library use mouseup and click events together to do the submit.

Native event simulate human actions and of course have those two events fired on the element. 

I tried several ways but no lucky.

--david


Date: Sun, 2 Aug 2015 05:14:57 -0700
From: idan...@gmail.com
To: seleniu...@googlegroups.com
Subject: [selenium-users] IEDriver native evenets on http://demos.telerik.com/kendo-ui/grid/editing-inline
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/050e3e4e-71d7-4cd1-9565-93e584bc5de5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages