MSFlexGrid UI Automation or White handling
-
Friday, September 14, 2012 1:43 PM
Hi,
Is there any way to get access to MSFlesGrid elements using UI Automation or White? I tried by using many diffrent options but no success... Any help?
- Changed Type Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Thursday, October 04, 2012 1:58 AM Not support the White and UI Automation
All Replies
-
Tuesday, September 18, 2012 5:55 AMModerator
Hi mrloka,
Thank you for posting in the MSDN forum.
Maybe you could share us some information about the MSFlesGrid elements, what error did you get when you run the coded UI test? What kind of app did you test?
We should check whether the coded UI test support this control.
Supported Configurations and Platforms for Coded UI Tests and Action Recordings.
Platform Support for Coded UI Test (and Fast Forward feature of Test Runner)
If it is not supported in default, we often need to extend Coded UI Tests.
Series on Coded UI Test Extensibility
Extending Coded UI Tests and Action Recordings to Support Microsoft Excel
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Friday, September 21, 2012 7:36 AMModerator
Hi mrloka,
I am writing to check the status of the issue on your side. What about this problem now? Would you mind letting us know the result of the suggestion?
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Monday, September 24, 2012 10:52 AMI'm still working on it... To be clear with you. I do not have any idea at the moment how to get oraz set values to the MSFlexGrid control. Do you have any experience with this?
-
Tuesday, September 25, 2012 5:25 AMModerator
Hi mrloka,
Glad to receive your reply.
I’m not very familiar with the MSFlexGrid control, Could you share us an app? I’m not very sure what issue you get, as my previous reply, we should make sure that whether it supported the coded UI test, if it supported, we would check the error message when we playback the coded UI test.
Sincerely,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Monday, October 01, 2012 2:32 PM
Sorry I can not share this app with you. But MSFlexGrid is an VB control which looks like this:
http://clip2net.com/s/2lXlG
UIA Verify see only this area (no deeper):
http://clip2net.com/s/2lXmQ
Any idea? Maybe you have any method or class which handles this sort of stuff?
-
Tuesday, October 02, 2012 2:32 AMModerator
Hi mrloka,
Glad to receive your reply.
It seems that you want to check a cell value in a specific row of a table, am I right? If we couldn’t add assertion for the control with Coded UI Test Builder, one idea is that you can use the Spy ++ or the UI Spy tools that come along with VS and VS SDK. Check whether you could get the control information from them, if you could, I think you could do hand coding for it.
I feel that it is similar to this thread (it is about the WPF DataGrid Control), I’m afraid that the coded UI test couldn’t find the control in default, since we don’t have out of the box support based on row and column index. So I’m afraid that you would do hand coding for it. Hope it could provide useful information.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Tuesday, October 02, 2012 7:07 AM
Actually I'm writting these tests using White and UI Automation. I do not record any tests - I do hand coding as you mentioned. So there is no chance to get handle of MSFlexGrid... I'm just wondering is there any chance to cast it to some other type of table or DataGrid (no idea).
Jack Zhai maybe you will try do something with MSFlexGrid and share some hand code?
P.S.
UI Spy shows same thing as UIA Verify
-
Tuesday, October 02, 2012 7:46 AMModerator
Hi mrloka,
Glad to receive your reply.
So you are using the tool like this, am I right? If so, I’m afraid that it is out of support range of VS-testing forum, to help you resolve this issue, I suggest you post a discussion http://white.codeplex.com/discussionsfor better support. Thanks for your understanding.
If you have the VS, I suggest you try to record a coded UI test for this app and add assertions for the controls, and then generate it to code, and then you could handle code it. I couldn’t repro this issue, but if you use the VS, but it has the same issue, you could share us your app. I will try to check it.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us

