So something that I've always had a bit of an issue with is how to deal with dynamically changing containers, like tables, lists, etc.
As of now when I fill out a form, and that form adds content to a specific table, I use a code behind class and a customer HTML searching tool I wrote to search that table for strings that I am looking for. This is a bit troublesome, because it means that I'm required to create a code-behind class for every test that has to verify data.
Another option that I noticed is I can create a unique element that wont be the same so the search params will be something along the lines of:
tagname = td
InnerText = TheStringUniqueToTheTestIAmRunning
The problem with this is that this will eventually create hundreds, if not thousands of elements creating a massive project file, not to mention from my experience test studio standalone or the vs plugin don't handle sorting elements very well and often crash because of it.
So what I'm hoping for is some other options that are a little simpler, that can be unique to a test and not require a code behind... all suggestions are appreciated!!
Cheers
Jon
As of now when I fill out a form, and that form adds content to a specific table, I use a code behind class and a customer HTML searching tool I wrote to search that table for strings that I am looking for. This is a bit troublesome, because it means that I'm required to create a code-behind class for every test that has to verify data.
Another option that I noticed is I can create a unique element that wont be the same so the search params will be something along the lines of:
tagname = td
InnerText = TheStringUniqueToTheTestIAmRunning
The problem with this is that this will eventually create hundreds, if not thousands of elements creating a massive project file, not to mention from my experience test studio standalone or the vs plugin don't handle sorting elements very well and often crash because of it.
So what I'm hoping for is some other options that are a little simpler, that can be unique to a test and not require a code behind... all suggestions are appreciated!!
Cheers
Jon