Contributions
Previous page (Logon page in my case) remains present in Object Browser even after successful login.
Hello, Iam facing issue while gettingcurrent page URL.Below are the steps I m performing: 1.Open application. (Logon page opens up.) 2. Provide valid credentials and login successfully. 3. Perform some actions on application. 4. Get the current page URL. Here when I try to get current page URL using Sys.Browser(browserName).Page("*").URL, it gives me URL of Logon page which is weird and incorrect. I wentback and check the Object Browser and I saw that TestComplete has kept that Logon page in memory and returned me that. I tried Refreshing Object Browser and Closing the Logonpage but none of those worked. Can anyone tell me how to get current page URL ? Thanks, Chandresh Parmar688Views0likes1CommentTestComplete integration with TestRail
Hi, I am using TestRail to manage my Test suites and I am using TestComplete to perform automation testing of my application. TestComplete allows to set log defects to JIRA. But does it provide any kind of API or Plugin which can help me to integrate TestComplete execution result to TestRail ? I mean is there any way in which I can update my test case result directly from TestComplete ? Thanks, Chandresh Parmar11KViews1like22CommentsRe: Clicking on li html tag does not fire its click event.
Hi Tanya, Thanks for your help. Here the issue is not with the finding object, I am able to grab the object successfully but the onClick event is not getting executed correctly. However I found root of this. The issue is that onClick method "myJS.SaveChanges();" is not returning any value. So TestComplete was not able to identify that respective method got executed or not. When I manually put "return true;" at the end of myJS.SaveChanges() method and ran the script it worked! So I am gonna have to contact Dev team regarding this and see what we can do. Thanks everyone!3KViews2likes1CommentRe: Clicking on li html tag does not fire its click event.
Hi, I looked into it and saw that namedItem("SaveChanges") is not parent of anything. There is no child element like link or anything, it shows only basic control properties. TestComplete identifies that control as Sys.Browser("iexplorer").Page("*").Panel("Placeholder").TextNode("SaveChanges").Image("correct_png") and I tried .Click() after that but it did not work.3KViews0likes0CommentsRe: Clicking on li html tag does not fire its click event.
Hi, Thanks for your help. I have tried that but it did not work. Find method did not return any objects. I also tried by searching through its "id" property but that also did not work. I tried below and observed that it does click on button but somehow doesn't fire the click event which is specified for onClick. Sys.Browser("iexplore").Page("*").Panel("my_panel").getElementsByTagName("li").namedItem("SaveChanges").click();3KViews0likes0CommentsClicking on li html tag does not fire its click event.
Hi, I have a li html element which has click event set for it. <ul class="button"> <li class="save-class" id="SaveChanges" style="' onClick="myJS.SaveChanges();"> <img src="C:\correct.png"> <span>save</span> </li> </ul> I grab the li object using getElementsByTagName("li").namedItem("SaveChanges") but when I perform click action for this bygetElementsByTagName("li").namedItem("SaveChanges").click() it does nothing. Any help on how to fire click event for this element?4.2KViews0likes7Comments