Right-click View Source for .NET application
I’m testing a .NET web application, and we bought the .NET extension kit. The application has tables I need to recognize. I found that it is impractical to try to use Table Recognition because these controls are only recognized as tables when TableRecognition=1.0, making everything very messy. I have been able to get everything I need to know about the table by parsing the source. When I pick from Internet Explorer’s menu View>Source, the source I see does not have the contents of my application, but is apparently for the higher level container that is not helpful for what I want to accomplish. When I right click on the application and then pick from the popup menu “View Source” I do get a source that shows me the contents of the screen, and this is what I parse.
GetPageSource() returns the source for the page I would get from using IE's menu View>Source (and this is the source that is not helpful to me). Is there an equivalent for returning me the source I get when I right-click and pick “view source”? Currently I am getting the source by having Silktest do the right-mouse click, picking from the menu, copying the contents of Notepad to the clipboard, and dismissing Notepad. That’s a lot of steps that I would rather hide from the users, not to mention being slow and embarrassing. Also, different automation users use different default editors. So if I keep going this route, I would have to find how to recognize not only Notepad, but whatever other editors they may be using.
So, is there an equivalent to GetPageSource() that would return to me the right-click view source?
Re: Right-click View Source for .NET application
short answer: nope
not-so-short answer: What we do is dynamically turn on and off the table support so that we can get the info from the tables we need when we need them and turn them off afterwords so that the other objects can be kept simple. Our framework manages this so that we define which tables need to be queried and which table recognition level needs to be used for that table and the methods do the rest. Works very nicely.