ContributionsMost RecentMost LikesSolutionsGet properties of a web page element Question In this example, we will demonstrate how to get some more information about a web element by using TestComplete. How to find the “Start a topic” button on the community page page and get the following info about it: color, font family, and font size and post the script and the log info below. Answer //JavaScript function test2() { var url = "https://community.smartbear.com/t5/TestComplete-General-Discussions/TechCorner-Challenge-13-Get-properties-of-a-web-page-element/m-p/207539"; Browsers.Item(btChrome).Run(url); var page = Sys.Browser().Page(url); var element = page.FindChildByXPath("//*[@class='NewTopic-link']"); var style = page.contentDocument.defaultView.getComputedStyle(element, ""); Log.Message("The Properties of web page element are as follows") Log.Message("Background Color : " + style.backgroundColor); Log.Message("Font Family : " + style.fontFamily); Log.Message("Font Size : " + style.fontSize); } Re: The script runs perfectly if executed alone, but fails when it is joined together Hi All, So i found out the root cause of the issue. Since all the drop down fields have same values, when it selects a value from the first drop down field, it stores that field's dom values or bounday values and though it opens the second drop down, it searches for the values in first drop down and since it couldn't find it, the test gave me out of the bounds error. Therefore, I made my xpath element more absolute(teels it in which dropdown, it should look for the values) and it resolved the issue. Hope it helps. Re: The script runs perfectly if executed alone, but fails when it is joined together Thanks for the idea.. But that doesn't work as well. Works fine for the first set of clicks and getting the same error for second set of clicks. The script runs perfectly if executed alone, but fails when it is joined together Hi All, I have wriiten a script to select colors/options for various dropdown fields as below. When i execute each field separately, it opens the dropdown box and selects the required option but when executed together, it fails after the first dropdown color select and the error message says "Out of the window bounds". Any idea why??? function otherBranchdet(){ page = browser.Page("*"); //Solid Fill Color page.FindElement("#Form_EditForm_SolidFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Solid fill ( #823A22 )')]").Click(); //Light Tint Fill color page.FindElement("#Form_EditForm_LightTintFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Light tint fill ( #F3EBE9 )')]").Click(); //Darker Tint Fill color page.FindElement("#Form_EditForm_DarkerTintFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Darker tint fill ( #DAC4BD )')]").Click(); //Lines on Light Tint Fill color page.FindElement("#Form_EditForm_LinesOnLightTintFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Light line tint fill ( #DAC4BD )')]").Click(); //Lines on Darker Tint Fill color page.FindElement("#Form_EditForm_LinesOnDarkerTintFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Dark line tint fill ( #C19D91 )')]").Click(); //Header Search Input fill color page.FindElement("#Form_EditForm_SearchInputFillID_chosen > .chosen-single").Click(); page.FindElement("//li[contains(text(), 'ABC- Light line tint fill ( #DAC4BD )')]").Click(); } SolvedRe: The certificate authority is invalid or incorrect- Web Testing ThanksAlexKaras, My code is working. All it required to work was to restart my pc and its working. and as you said to ignore certificate issues, MSXML2.ServerXMLHTTP object needs to be used The certificate authority is invalid or incorrect- Web Testing I need to get the redirected URL so wrote the following code but i get "JavaScript runtime error. The certificate authority is invalid or incorrect" while sending the request. I tried to enable certificate issues from TestComplete Settings and included code as well. But still it doesn't work.. /* Code...*/ function NavigateToFromUrl() { var address = "https://www.te**********"; // Create an aqHttpRequest object var aqHttpRequest = aqHttp.CreateGetRequest(address); let objXMLHTTP = Sys["OleObject"]("MSXML2.ServerXMLHTTP.3.0"); objXMLHTTP.setOption(2,13056); // Send the request, get an aqHttpResponse object var aqHttpResponse = aqHttpRequest.Send(); if (aqHttpResponse != null) { // Read the response data Log.Message(aqHttpResponse.StatusCode); // A status code Log.Message(aqHttpResponse.StatusText); // A status text Log.Message(aqHttpResponse.GetHeader("Location"));//Navigated URL } } Any help is appreciated. Thanks SolvedStoring objects on separate file Hi Everyone, I want to store all my object names in separate file which contain the NameMapping values and xpath values . How to do it in Testcomplete? SolvedRe: Object Spy doesn't focus on dropdown arrow of the desktop application Thanks AlexKaras The first option didn't as it told the textbox not visible but the second option worked. Thanks Reshail.. The Image based testing was much easier to do as my application contains too many drop down arrows and this helped me to capture all the dropdowns in one screen easily ThanksMarsha_RI did try that but only one element (First one) from the list is enabled and others are disabled /hidden Object Spy doesn't focus on dropdown arrow of the desktop application Hi Everyone, I try to spy on drop down arrow of a desktop application built using power builder 12.5 but it doesn't find it. I have tried ClickItem(), wIsdropdownopened function etc but nothing works. In my application only if i click the arrow the dropdown list expands. As of now i enter the text as a work around but i really want to traverse through the drop down list. I'm new to Desktop application testing so an help is apprecioated. It selects the whole box instead of just the dropdown SolvedRe: Desktop Application Testing Hi All, So all i had to do was enable Powerbuilder extension to spy on the objects. The following link helps with that. https://support.smartbear.com/testcomplete/docs/app-testing/desktop/power-builder/classic.html. Therefore, once you know the technology that your application is built , we need to enable the extensions . https://support.smartbear.com/testcomplete/docs/app-testing/desktop/index.html1420667842.1598476285https://support.smartbear.com/testcomplete/docs/tutorials/getting-started/first-test/desktop/index.html