I am using Selenium to grab the HTML Source before and after certain events. I notice that sometimes it will grab the correct code and other times it won't. The issue I am running into is that when you click a check box or radio button, it will grab the same source. If you look at the actual sources before and after the events, they will be different and you can see that the box is checked. Does anyone know of a fix for this issue?
Example.
GetHtmlSource
Click Check box
GetHtmlSource
The two sources will be the same in Selenium but when viewing the actual source from the browser there will be difference, a checked = "checked" will be in the later source. Selenium seems to be handling changes in AJAX and other components find by comparing HTML Sources but check boxes and radio buttons it fails.