Change attributes on the current Folder in the log
I am trying to change the attributes on a folder based on if there are any error messages within that folder. I was wondering if this was possible. [code] var goodAttr = Log.CreateNewAttributes(); goodAttr.Bold = true; goodAttr.BackColor = clLime; goodAttr.FontColor = clGreen; var badAttr = Log.CreateNewAttributes(); badAttr.Bold = true; badAttr.BackColor = clRed; badAttr.FontColor = clMaroon; foo = function() { var previousErrs = Log.ErrCount; var logFolder = Log.CreateFolder("New Folder", "Stuff that goes in this folder", pmNormal,goodAttr); Log.PushLogFolder(logFolder); // ... // Do Stuff // Some of which may be errors //... if (Log.ErrCount >previousErrs) { // This is the part I can't figure out. Log.Item(logFolder).Attr = BadAttr; } Log.PopLogFolder(); } [/code]56Views0likes5CommentsGeneral Exception raised within Run Browser action
Hi all, I'm falling in an random error for which I'm not able to find the root cause nor a workaround. I'm using TestComplete/TestExecute 15.66.7.7 version. The automation test is simply opening an Edge browser instance and navigating to the needed url; then, the needed validation web test steps are executed. Within this simple operation sometimes the Test Execute falls in an exception, for which the log doesn't provide so much information. The message is "Exception occured". From the picture, I can see that the browser is still loading the page. That is: it seems that TestExecute is not waiting for the complete loading of the page for the navigation. The strange thing is that, as you can see from the log below, the test is next correctly executed (the browser interactions are correctly done) but, for that strange Exception, the automated test is marked as failed (by providing a wrong information, since the needed validations are actually passed). I'm simply using the Run Browser action to open browser and navigate to the needed url (saved within a project variable): Please see the generated log below for more details. Could you suggest me a way to prevent this exception or the possible root causes for it?100Views0likes5Commentsmht files are by default opening in Edge browser and its blank
Hi Community, Since today morning I've observed that Testcomplete results .mht files are by default opening in edge browser instead of IE and the page is completely blank. I've gone through some forums and did the below changes but nothing worked. Can someone help us on this please.Solved946Views0likes8CommentsName Mapping not working on remote browser
The name mapping and test cases work fine on local browsers, but would complain about page or object not found when running headless remote browsers and in parallel testing. I have the following setup for browser name mapping: For headless setup I have: server = "localhost" capabilities = { "browserName": "chrome", "headless" : "true", "screenResolution": "1920x1080", "platform" : "Headless", "record_video": "true" } Browsers.RemoteItem[server, capabilities].Run(url) Is this the correct way to work with name mapping on headless browser?884Views0likes14Commentsmapped elements in headless mode does not return child elements
Hi folks, I'm recently trying to run my web-based tests in headless mode and I found a blocking issue that the mapped elements does not have child elements. Therefore, FindChild method (and other Find methods) fails to find child elements in such element. The mapped element alone is found. It just shows ChildCount = 0. Please see the attached image. Does anyone experience the same issue?19Views0likes6CommentsMissing the step to select an item in a dropdown in recording scripts
I'm trying to click a dropdown and select "Agent" in the dropdown(picture1.png, picture2.png), which will open a popup,but the record scripts doesn't list the step of selecting "Agent"(picture3.png). Does anyone know what's going on with the tool ? I tried to manually add object as well, but it doesn't work for any items in this dropdown.47Views0likes11CommentsTestComplete cannot find chrome webdriver
Hello, I am trying to get TestComplete to run headless tests. I am following this guidehttps://support.smartbear.com/testcomplete/docs/app-testing/web/supported-browsers/headless.html#localand I am running into the issue that TestComplete cannot download/see the needed WebDriver. This is the JavaScript used in the guide. function Test_Chrome_Headless() { var server = "localhost"; var capabilities = { "browserName": "chrome", "screenResolution": "1920x1080" }; var url = "myurl"; Browsers.RemoteItem(server, capabilities).Run(url); } I downloaded the chrome driver manually and created the path as shown above. But even with the driver in the correct location he cannot seem to open it. When I try to open the driver myself, it works. Does anyone have an idea what I am doing wrong? Kind regards, Luuk577Views0likes4CommentsRemote browser clear cache
I am encountering an issue where my remote (headless) browser seems to be caching (remembering) my login. If I go to the app through the browser, I am prompted to login. Navigating headlessly, I am already logged in. How can I handle this case? I am thinking its cache related so how can I clear a cache on a remote browser through TC?32Views0likes2CommentsHow can I retrieve the text of that dropdown below?
Hi everyone, I am trying to get a text of dropdown in my application. Dropdown looks like this in the HTML: And in the system it appears like that: So far I tried innerText, outerText and contentText methods, none of them working.48Views0likes4CommentsSet web slider position without dragging slider
Hi guys, Is there a way to set the web slider position, without the need to drag the slider (or using cursor/page up/down keys)? I found SetPosition action or wPosition property, but neither seem work with the web objects. And yes, I also tried set "Keys" or "value", but these does not work either. Thanks for any idea :) PS: I ended-up with below solution, using Keys action. else if (inputElement.ObjectType == "Slider") { inputElement.Keys("[Home]"); for (let i = 0; i < (csvInputValue/10); i++) { inputElement.Keys("[Right]"); } } Basically, it Home key sets the slider to zero position and then Right key in loop sets the slider to expected position.62Views0likes8Comments