I'm currently doing a windows application in c# whereby each time I click on the webpage, it will create an alertbox stating the id/ class that particular item is in. The situation is same as using the Page ruler extension for Google Chrome. Instead this application is in order to read from Internet Explorer browser. A few different method that i have used is Selenium but it directly hard code the id/class into the c# function which is not what i needed. Anyone have any suggestion on how to proceed with this steps?
I'm currently actually trying to duplicate the Page ruler extension (Google Chrome extension) for my application so that it can be used in Internet Explorer browser. The situation that caused i'm unable to use Selenium is: - It directly hardcoded each of the the id/class into the function before action. What I needed is something like returning the whole id/class in the webpage. I used CssSelector but it just return id=123445568
The next solution is using HTMLAgilityPack which i'm facing the same problem as Selemium. Before any of you closed this, please clarify any further information that you needed in order for me to add more details on my requirements