For those of you using DP, how do u guys usually handle text, image etc. checkpoints?
For example: text checkpoint
What I'm currently doing is, I read the pages body text and search for the specific text in the page and then I handle it with an if...then.
Set PageObject = Browser(oBrw).Page(oPge).Object
sPageText = PageObject.Body.innertext
res = Instr(sPageText, DataTable("UserName", dtGlobalSheet) ) '
if res >0 then
I was wondering if you guys could share a better way of doing this.
Re: DP Checkpoints
This is not DP, its DOM. The code that you have written will work for any text irrespective of its position in the browser.
I dont think using DP you can check image checkpoints.