Checking existence of few fields after a selection made - 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: Checking existence of few fields after a selection made (/Thread-Checking-existence-of-few-fields-after-a-selection-made) |
RE: Checking existence of few fields after a selection made - Saket - 08-02-2010 Yes that is excellent, I should have think that way earlier. what is the error, do you get any description for the error. also I think if you can try using virtual object and try to find its existance, may be this can also work in this case. RE: Checking existence of few fields after a selection made - PrabhatN - 08-02-2010 I have attached the screenshot of the run error as well as the code. Yesterday I was trying with virtual object but not able to use it. RE: Checking existence of few fields after a selection made - guin.anirban - 08-03-2010 To get rid from this error use "On Error Resume Next" and use Err object to get the error number (Err.Number) and if it is not equal to zero then make it fail. By using bitmap checkpoint you are able to slove the existance of the links in that page. But my question is that if you select "No" option and perform some click event operation on the link still you are redirecting to the new page. How you are controling this operation? RE: Checking existence of few fields after a selection made - PrabhatN - 08-03-2010 Hi Anirban, @On Error Resume Next : I used this one and able to make the decision about the existence of Link but in the Result Summary, a fail message is being shown since the bitmap checkpoint is failing which I don't want to show. So can it be possible to show only 2 Pass messages, one is for "Yes" option that will come when the checkpoint will pass and another is for Link invisibility which I'll report. @Click event on Link : For the time being I am not handling that part. I only need to check both the options of the WebList. Thanks RE: Checking existence of few fields after a selection made - guin.anirban - 08-03-2010 Hi Prabhat, In that case you can use the Reporter.Filter property for not showing the failed one. On Error Resume next Code: Reporter.Filter = rfDisableAll RE: Checking existence of few fields after a selection made - PrabhatN - 08-03-2010 Hi Anirban, Thanks. After 25 posts, ultimately got a decent solution. Thank you very much Saket for all your efforts and time. RE: Checking existence of few fields after a selection made - guin.anirban - 09-29-2010 Hi, i also faced the same issue in our application. Have u got any solution for this issue? I overcome the issue by checking the x and y coordinate. if u r having the application then u can try with the x and y coordinate. For nonvisible objects x coordinate will come as zero. |