Contributions
Got "Incorrect syntax near 'NULLDROP'" when trying to connect to DB
Hi there, I got error "Incorrect syntax near 'NULLDROP'" when my codes were trying to run DBConnection.Open I have verified my code works when the query is quick, it only failed because this specific query was taking about 30 secs to return results. Does anyone know how I can fix this issue? Thanks in advance! Set DBConnection = ADO.CreateADOQuery DBConnection.ConnectionString = xxxxxxxxxxxx DBConnection.SQL = QueryToRun DBConnection.OpenSolved864Views0likes3CommentsNot able to call page object
Hi there, I am getting "You are trying to call the "page" method or property of the following name mapping object: Name mapping item: browser" when I run this code Aliases.browser.Page("*").NativeWebObject.Find(xxx,xxx,xxx) The name mapped item browser is any item that the ObjectType is Browser, this code was working perfectly before, but it started complaining just recently, what is more odd is this line of code only fail on a specific machine, I ran the exact same code on other machines, they all worked fine. Does anyone have any idea what is wrong here? Thanks in advance608Views0likes3CommentsDrop-down box cannot be closed error
Hi there, I was running my test on Google Chrome, and I got the "Drop-down box cannot be closed" error message when it was trying to select an item from a dropdown list. This error doesn't happen every time when running the script, and once it happened, it not only triggered this error but also failed to select the item from the dropdown. Does anyone has any idea how I can fix this issue? Thanks in advance842Views0likes3CommentsRe: Is TC able to manipulate webpage by using browser developer tool?
I think I found what cause the issue. I noticed that Chrome doesn't have Application property, but IE does, so I tried and it worked on IE but not Chrome. Is there anyway I can embed javascript on chrome? I am pretty sure it was working on Chrome before.1.8KViews0likes1CommentRe: Is TC able to manipulate webpage by using browser developer tool?
Don't remember what has been changed, it has been a while, but our IT team has switched the anti-virus software to another one that I can be sure. Other tests are running good, so it is not the new anti-virus failing the test. It is complaining on the first line PageDocument = Aliases.browser.Page("*").Application.document that Application couldn't be found, I believe it is a browser page property, so even though my environment changed, they should impact the browser page properties. I grab the codes from https://support.smartbear.com/testcomplete/articles/embedding-scripts-into-web-pages/, but this page seems not available anymore1.8KViews0likes6CommentsRe: Is TC able to manipulate webpage by using browser developer tool?
Hi again, I am getting error from the codes that was working 2 month ago. It is complaining "Unable to find the object Application. See Details for additional information.", but it was working before with the exact same codes. Any idea what is going on? PageDocument = Aliases.browser.Page("*").Application.document body = PageDocument.body script = PageDocument.CreateElement("script") Call script.setAttribute("type", "text/javascript") script.text = "function disableButton() { document.getElementById(""btnSignin"").disabled = ""disabled""; }disableButton();" script = Body.InsertBefore(script, null)1.8KViews0likes8Comments