How to test ad zone from source code.
I am trying to test ads in my site, i want to capture ad zone from source code, any idea how can i do that.
I want to copy xxxxxxx from source code in QTP local sheet.
I have tried with Database checkpoint, it did not work for me bcz ads are changing randomly.
Re: How to test ad zone from source code.
You need to read page source code with Page(xxx).GetROpropery("outerhtml") or DOM,
put retirieved data into variable as string,
parse it to get dinamic value by
cutting known static values with the "Mid, Left, Right, InStr" functions of VBscript