Report Viewer showing hundreds of WebElement.Exists? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Report Viewer showing hundreds of WebElement.Exists? (/Thread-Report-Viewer-showing-hundreds-of-WebElement-Exists) |
Report Viewer showing hundreds of WebElement.Exists? - themoon - 03-03-2016 I've been working with UFT for a couple of weeks now and I'm trying to automate some testing for a Web Application. I'm using descriptive programming to manipulate the website and I'm doing a very small amount of custom logging to modify the end report. For some reason I can't figure out, I occasionally get an end report that has about a thousand of meaningless "WebElement.Exist" statements. [img]file:///C:/Users/b003223/Desktop/Untitled.png[/img] In all of my code I am grabbing elements through descriptive programming without an object repository via something similar to: Code: checkWebElement = Browser("creationtime:=.*").Page("title:=.*").WebElement("innerhtml:=" & inner_html).Exist I never turn off the original reporter but I do make a couple of additional checks for every test. Here is the function I use to report: Code: Sub assertAreEqual(value1,value2,action) As I write this I find it fishy that my first line of code above is very similar to my issue but that specific line of code runs only once (and in a different test) than where these WebElement statements are trampling me. Here is the entirety of my test I'm running Code: search_param1 = DataTable("parameter_1",dtGlboalSheet) 'grabs input paramter Any ideas? RE: Report Viewer showing hundreds of WebElement.Exists? - vinod123 - 03-09-2016 Use abs_x or abs_y to differentiate the WebElements of the Web Application |