Launch Browser in Incognito/Private Mode
Thought of sharing the code in the community for launching browsers in their incognito modes. The function is parameterized such a way to run for the browsers Internet Explorer, Edge, Chrome and Firefox. Hope it will be useful for more people. function runIncognitoMode(browserName){ //var browserName = "firefox" //iexplore,edge,chrome,firefox if (Sys.WaitBrowser(browserName).Exists){ var browser = Sys.Browser(browserName); Log.Enabled = false // To disable the warning that might occur during closing of the browser browser.Close(); Log.Enabled = true // enabling the logs back } if(browserName=="edge"){ Browsers.Item(btEdge).RunOptions = "-inprivate" Delay(3000) Browsers.Item(btEdge).Run(); }else if (browserName=="iexplore"){ Browsers.Item(btIExplorer).RunOptions = "-private" Delay(3000) Browsers.Item(btIExplorer).Run(); }else if (browserName=="chrome"){ Browsers.Item(btChrome).RunOptions = "-incognito" Delay(3000) Browsers.Item(btChrome).Run(); }else if (browserName=="firefox"){ Browsers.Item(btFirefox).RunOptions = "-private" Delay(3000) Browsers.Item(btFirefox).Run(); } Sys.Browser(browserName).BrowserWindow(0).Maximize() }3.8KViews8likes3CommentsxPath won't recognize
Hello, I am trying to create a generic mapped object using xPath. But for some reason TestComplete cannot find the element. I am trying to get the selected selector working. As it is now it doesn't seem to recognize the selector and it's using OR so it has to go through all the selectors, am I right? When deselecting, TestComplete does recognize the selector. But I want to create a general selector. And for some reason start-with doesn't work, because multiple results are found. I also checked the TestComplete documents to see if there is anything about this but I only get general xPath information. Is there anyone who can help me with this? Kind regards, Luuk2KViews0likes8CommentsUnable to use wild card (*) in Mapped Name.
Hi, Please advise on how to use wild card * on already Mapped Name in TestComplete 14. Example below: Aliases.browser.pageTest8.buttonCancelled. The value pageTest8 keeps changing. I tried to add Aliases.browser.pageAtlas*.buttonCancelled but getting red cross against this line. Many Thanks, Az.1.3KViews0likes5CommentsTestComplete Trial Chrome not recording
I am part of a team evaluating TestComplete for my company. For some reason when I record a test nothing is getting into the keyword test. It open chrome but that is it. No recording of the application once I am in Chrome. I am using TestComplete 15. Any help is appreciated. Thanks!Solved2.9KViews0likes18CommentsChrome not detected as a browser object
When I try to access chrome while one of my projects is open, I can access chrome as a browser object (Sys.Browser("chrome")): But after I try another one of my projects under a different project suit, it can't seem to detect it as a Browser: This problem persists when I write subroutines in the scripts under this project (I'm using VBScript for both projects). Even if I record a test using TestComplete and it generates a subroutine using the browser object, it can't run the subroutine later on. Even if I open a new project under the project suite that's currently holding the problematic project, I can access the browser object. I can't seem to figure out what's different with this particular project that's stopping it from accessing the browser object. Could anyone give some possible reasons for this happening?1.3KViews0likes3CommentsTestComplete keeps losing mapping of objects
I am using the full version of TestComplete and when I setup a test I will get the object setup once when it has been recorded. However, the next time I run the test often times the test will lose the mapping of the same object. For example I enter a button click the system maps it to buttonkeep in namemapping. However, I will go back with new information with a new set of data that will use the same button click and that click no longer works and the error says the buttonkeep could not be found. I will then remap it and it will go from something like buttonkeep to buttonkeep4. Something is causing the Testcomplete not to find the mapping of the buttonclicks. I have found similar problems with other mapping issues.Solved2.6KViews0likes13CommentsAmpersand affecting FindChild function
I'm using the .FindChild method to find objects in a table using a series of variables. The function sets a field in a form to a value (ex. x.setTest("ABC")) and submits the form, then tries to find a child object with "ABC" as the innerHTML. This succeeds. The next value is "A&C", submits find, appears on the table, but the .FindChild method isn't able to find it. I'm pretty sure it's the ampersand preventing it from being found. Unfortunately, the ampersand isn't optional. Any help would be appreciated. Thanks, Tostig813Views0likes2Commentstested window (or control) has been deleted
Hi, I'm new to test complete. I have built my first script using cucumber BDD. I'm testing Salesforce Application. Whenever I run my feature file I get "tested window (or control) has been deleted" error message and my test stops at execution. This only happens when I lunch my chrome browser from the extended monitor. I don't get the message when I run the script by launching the chrome browser from the laptop. Anyone knows what is the root cause of this issue and how to resolve it? I have tried puttingAliases.browser.RefreshMappingInfo(); into my hooks file@BeforeFeature function but still having the issue.Solved2.1KViews0likes4CommentsCheckpoint that will recognize when information is incorrect as enterred
I have a have a relatively new web-application. This when I generate the checkpoint while the information is correct and it will validate all the way through the checkpoint itself is incorrect because the data shows that when nothing is selected the system shows that that you can select a update customer and delete customer. These buttons should be disabled. Is there away to get the checkpoints to work so that the regions or property checkpoints will recognize this?Solved1.4KViews0likes4Comments