Contributions
Re: TestComplete verify existence of some html tag on a webpage
AlexKaras, thanks for the pseudocode, if I am not wrong , this code checks if any image has a missing alt tag, which can be used as a prestep. I want to check if the alt tag is displaying on the page which normally does if an image has not loaded, how to verify that? Thanks820Views0likes1CommentRe: TestComplete verify existence of some html tag on a webpage
Thanks AlexKaras for a well thought response. I checked with the developers, there are no hidden elements on the page. All images load successfully in a happy path scenario and all have alt tags. If you can suggest something along these lines or otherwise it would be very helpful. Thanks839Views0likes3CommentsTestComplete code to scroll to the element and bring it in view
I am looking for an efficient way using JavaScript in TestComplete of reaching the elements and perform actions on them if they are not immediately visible when you navigate to a page but thay are there when you scroll down.944Views0likes3CommentsTest Complete test pass if the element doesn't exist on the page
What is the best way to check using javascript or TestComplete methods that the element is not present on the page. FindElement.exists fails the test but I want a way to pass the test if the element is not present. Example code will help. Thanks468Views0likes1CommentRe: Writing script test to validate text which has some part dynamic but the rest remains the same
Thanks for that. Could you please also suggest which method out of these would work here to validate a static text containing some dynamic number so the test pass. If it is returning a number anything >=0 it should pass else fail.721Views0likes1CommentWriting script test to validate text which has some part dynamic but the rest remains the same
I would like to know a way to validate some text on search page using javascript which is returning number of items based upon what has been searched but the remaining text remains the same (e.g. 20 items found or 0 items found where 20 and 0 can change but remaining text remains the same). I would want the test to pass as long as there is a number coming back doesn't matter if it is a zero. A test should fail if nothing is coming back in the number place.Solved751Views0likes3CommentsRe: TestComplete training script based
Thanks Larry, I am sure people with no scripting background learn it that way but for someone who knows some scripting, keyword tests are annoying. I couldn't find any tutorial exactly targeting script based tests for advanced/complex scenarios.873Views0likes1Comment