ContributionsMost RecentMost LikesSolutionsRe: Verifiy link address on firefox Hi, Thank you for helping me out. I found out that the firefox address bar field doesn't have 'text' property on it, so I decided to use other browsers (IE & Chrome) and it seems to work. Thank you very much. And I will start to learn more about programming and TestComplete :) Re: Verifiy link address on firefox I tried it with this: function CheckWebURL(UrlToCheck) { //Assuming that no need of browser exists check so just check if an url is given to be checked and if current browser current page url contains this url if (typeof MyValue == 'undefined'){ var posUrl = aqString.Find(Sys.Browser("*").Page("*").URL, UrlToCheck, 0 , false); return ((UrlToCheck != "") && (posUrl >=0) && (posUrl < 9)) } else{ Log.Message("Error on identifying the link"); } } And it's giving me error: Ms JScript Runtime error (Object doesn't support this property or method) Re: Verifiy link address on firefox Thank you very very much for helping me out. So here's what I have.. function CheckWebURL(UrlToCheck) { //Assuming that no need of browser exists check so just check if an url is given to be checked and if current browser current page url contains this url if (typeof MyValue != 'undefined'){ var posUrl = aqString.Find(Sys.Browser("*").Page("*").URL, UrlToCheck, 0 , false); return ((UrlToCheck != "") && (posUrl >=0) && (posUrl < 9)) } else{ Log.Message("Error on identifying the link"); } } However, it gave me the result of the else condition, instead, "error on identifying the link", did I put the if on the wrong spot? Oh wait.. I didn't define what MyValue is... Or perhaps, is it because I am using Firefox? Because when I tried to use Keyword test, the search bar doesn't have text/caption property, and it stated 'stub object doesn't have text property' Thank you. Re: Verifiy link address on firefox I am currenty using TestComplete 12, would it make any difference? Re: Verifiy link address on firefox Hi, Thank you very much on the explanation, beforehand, this might be a stupid question, in JavaScript, would it be possible to write "" in this function CheckWebURL(UrlToCheck = ""){ ... } Because it's giving me error. Thank you very much. Re: Verifiy link address on firefox Hi, Sorry for the late response and thank you for replying on my question. I tried to write a script as you said, however, i got the warning Ms Jscript Runtime error. As I am not familiar with coding, here's what I have: function CheckWeb() { // Obtains the browser process var browser = Sys.Browser("firefox"); // Obtains the page currently opened in Mozilla firefox var page = browser.Page("*"); try{ if (page == "www.google.com") { Log.Message("Support link checkpoint success " + page); } } catch(e) { //Handle exception Log.Message("Error: "+ e.name, e.description); } } Could you please help me with this? Thank you very much Verifiy link address on firefox Hi, I am still exploring on how TestComplete works. Currently, I am trying to create a test to verifiy the support link provided on the software opens the expected website address. As I have limited knowledge on the scripting, I am using keyword test method. When I recorded the test and used property checkpoint on the address bar, for example, i want to verify that the website address is 'https://community.smartbear.com/', it didn't show any Text property, only caption, and it didn't work. When I tried to run it, it shows warning message, 'The "Text" property of the "Stub object" object does not meet the checkpoint's condition', I am not sure why the address bar on the firefox is considered as a Stub object. Could anyone please help me how to verify website link inside the address search bar (I think it's a combobox)? Thank you. Kind regards, Ran SolvedRe: Serial Port Communication Hi Alex, Thanks a lot for your help. I tried to do it in Python (not in TestComplete), as I am more comfortable using Python, by converting the hex sequence into bytes and sending it to the port (I apologise I didn't know that it has to be in bytes and I might make mistake in JavaScript). I decided to import the external Python code into the TestComplete in JavaScript and run it with WScript. Thank you! Re: Serial Port Communication Hi, Thanks for the response. I just tried to modify the Port.Write () as you mentioned, however, it still gave the blank reading of the port, or maybe is it because of the Port.BytesToRead? Thanks in advance. Serial Port Communication Hi, I am trying to create a connection with port com, and I am using JavaScript. The goal is to send the HEX sequence and read the HEX back from the port. I copied from this page https://support.smartbear.com/testcomplete/docs/scripting/working-with/com-ports.htmland I modified a bit, here's what I have: function Test() { var Port, s; Port = dotNET.System_IO_Ports.SerialPort.zctor_4("COM6", 9600); Port.Open(); // Writing data to the port Port.Write("1A030688"); // Waiting for response aqUtils.Delay(1000); // Processing response if (Port.BytesToRead != 0) { s = Port.ReadExisting; Log.Message(s); } else Log.Warning("No data"); Port.Close(); } It gave me "No Data", I believe it's because I was sending HEX instead of Bytes, but I am not sure how to fix it. When i tried to remove the 'if' clause, it gave me a success, but it's blank. It's been a few days but I still don't know how to solve it. I would really appreciate it if anyone could help me with this. Thank you very much. Solved