Does selenium support devexpress grid to record and playback using selenium IDE? - grid

I have a web app which contains devexpress grid. I tried to click the link displayed in one of the column of the grid, but it doesn't capture anything. Can anyone help me to fix this!

Yes, Selenium works with DevExpress controls, but the Selenium IDE recorder often fails to detect the correct element in which case you need to replace the 'Target' parameter with a manually entered one. You can use Firebug or equivalent to help find likely targets. Also, it sometimes helps to replace 'click' with a 'mouseDown' followed by a 'mouseUp'.
For instance, the following script works for clicking on rows and columns:
// open the DevExpress grid demo (tested against version 11.2.5)
selenium.open("http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditModes.aspx");
// click on the City column header
selenium.mouseDown("//td[#id='ContentHolder_grid_col3']/table/tbody/tr/td");
selenium.mouseUp("//td[#id='ContentHolder_grid_col3']/table/tbody/tr/td");
// click on the each of the first three rows
selenium.click("//tr[#id='ContentHolder_grid_DXDataRow0']/td/a");
selenium.click("//tr[#id='ContentHolder_grid_DXDataRow1']/td/a");
selenium.click("//tr[#id='ContentHolder_grid_DXDataRow2']/td/a");

Related

(RADGrid ItemCommand Event) Cannot Get Values From Cells?

I am having a strange problem. First let me start by saying that I am using the Telerik controls supplied by DotNetNuke. So I can not "upgrade" to any other version of the Telerik controls. I am stuck with what I am given.
I wrote a module initially using DNN v06.02.09 (Telerik v2012.2.724.35) and it worked great. I unfortunately am forced to upgrade to a newer DNN version because of a bug found in this particular version of Telerick's RADScheduler (which effects the month of November only). So...now I am running DNN v07.00.06 (Telerik v2013.1.403.40). [Note: I also tested this with the most recent DNN v7.04.01 (Telerik v????) and confirmed the same behavior described below]
Previously when I clicked on a button inside the RADGrid and the ItemCommand event fires I was able to obtain the value of each cell in the row that the button was activated in. The same exact code running in DNN v7.x now returns "nbsp;" for every single cell in the row. It's like the new Telerik version doesn't bind the data to the GridDataItem (e.Item) within the ItemCommand event like it used to.
What am I missing? How do I get the selected row's data like I had before?
Ok, so after scouring the internet and trying everything I could think of to fix this...I stumbled across the following "article"... http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate
You would think they would make this stuff easier to find. Apparently the ".Visible" property's behavior was changed, so that if the column is not visible, it also does not bind data. They created a new property called ".Display" that would hide the column but still bind the data. I had to change my code to use the new property and then the grid's behavior was returned to what it was previously.

Dynamic grid using wpf devexpress

I m having situation whhere i need to add text box in grid control cell just like we add button in the cell but the text box should open a small window when click .User should be able to fill enteries in that window.
This is possible in extjs but can anyone please tell how to achieve this with devexpress controls.Please find the screenshot of the same.
DevExpress provides a workaround for WPF platform: PopupContainerEdit for WPF, whats the status?
This solution is valid for WinForms platform only
DevExpress has the PopupContainerEdit editor that supports in-place mode. This editor is very handy to implement the functionality you described.
To make it work properly in in-place mode, handle these two events:
PopupContainerEdit.QueryResultValue Event
RepositoryItemPopupContainerEdit.QueryDisplayText Event
The result value will be passed to the cell where the editor is located. It is a bad practice to modify data manually after closing the pop-up window.

Setting ControlID to be used for AutoIT

I am trying to do some automated functional testing for a windows app and I just got my hands on AutoIT. Looks like most (if not all) standard windows applications have a Control ID set. Unfortunately, the Control ID field is blank when i mouse hover using the Finder tool. So looks like the application (written in C) hasnt set a ID to each element?
I've used XCode's UI Automation for iPad apps and we use "setAccessibilityIdenitifier" to uniquely identify each field. I am trying to find out the equivalent for a Windows application.
That begs the question, is AutoIT even the correct tool? All my testing is calculation based. So you can assume 2 input fields and one output. So if the user enters 5, and 2 and hits "Add", I need to check if the output is 7. So i need to uniquely identify each element.
I also noticed when there is a group of elements, when i hover my mouse over the group, i get "Static" as the classname and only the coordinates change when i try to access each element, and every other control like Instance, ClassNameNN all remain the same. Any ideas?
Thanks in advance!
EDIT: Thanks to the AutoIT forum guys, the group issue is fixed - http://www.autoitscript.com/forum/topic/151055-autoit-basics/
I still need to know how to set Control IDs from the application side C code

How to drag and drop column values in a table/grid?

I have an existing Silverlight application that allows one to click on a column cell and drag to the left or right in the row. When this is done the value from the original cell is copied into the "dragged over" cells (there could be more than one). At the same time, a message is sent to the server to trigger a database update.
I now need to port this application to ASP.Net and make it tablet friendly. I have searched high and low and looked at the various grid providers and through jquery plugins but have not been able to find something that already does this. Any ideas on existing solutions or how to get started otherwise?
Thanks!

Add filter to Add existing button crm 2011

I followed the instructions in this link
but I face a strange problem which is when the lookup is populated with the new filtered view the add button is getting disabled when I select a record from the new view !!
I debugged the code in the lookupinfo.aspx page and I found this line of code that controls whether the add button is enabled or disabled
btnAdd.disabled = (crmGrid.InnerGrid.SelectedRecords.length == 0);
and this line of code always return true despite there is a selected record !!
Can anyone help me ?
Thank you.
I followed the instructions in this link
Which link? I can't see one referenced in your question. I'll make some assumptions about what you are trying to do. I will assume that you are trying to hide an "Add Existing" button linked to a form's sub-grid. I'll also assuem you're trying to edit XML files by hand (which is the hard way!).
The easiest way to apply rules to buttons in CRM 2011 is to use Erik Pool's brilliant tool "Visual Ribbon Editor" (available here)).
To hide an "Add Existing" button based on selected records, you would:
Connect the tool to your CRM environment
Open the "parent" entity (i.e. the record type that shows the "Add Existing xxxx" button
Select the Ribbon Type to be "Sub-Grid"
Select the button you wish to manipulate
Add or edit the Enable Rules for that button
If I'm not describing a solution to your problem, maybe enhance your question - it's hard to understand what you are trying to acheive.

Resources