Qtp Object Required Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have
Object Required Error In Qtp Childitem
Meta Discuss the workings and policies of this site About Us object required wscript error qtp Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Object required: UFT up vote 1 down vote favorite 1 Can't get any further on here. I am in a situation where I've to select a webcheckbox depending on index. Below is my code Set Brw = Browser("title:=.*").Page("title:=.*") MilestoneTBLRow=brw.webtable("cols:=7","column names:=;Milestone Name;Milestone Date;Description;Created Time;Modified Time;Action").RowCount MilestoneTBLCol=Brw.webtable("cols:=7","column names:=;Milestone Name;Milestone Date;Description;Created Time;Modified Time;Action").ColumnCount(1) For i = 2 To MilestoneTBLRow Step 1 set MilestoneTBL = Browser("title:=.*").Page("title:=.*").webtable("cols:=7","column names:=;Milestone Name;Milestone Date;Description;Created Time;Modified Time;Action") `MilestoneTBL.childitem(i,1,"WebCheckBox",0).set "ON" Browser("title:=.*").Page("title:=.*").WebButton("name:=Mass Edit","type:=button","html tag:=INPUT","index:=0").click btnSave "0" Next The error happens at Object required: 'MilestoneTBL.childitem(...). From a webtable, I need to select the webcheckbox depending upon there index.In this case, the index starts at index "0" & it is in 2nd row of webtable. The row number & index doesn't match here. If the index is 0 then the row is 2. I need to supply a variable which will keep increasing index by 1. I've tried using MilestoneTBLRow out here MilestoneTBL.childitem(i,1,"WebCheckBox",MilestoneTBLRow).set "ON" & that returns an error Object required: 'MilestoneTBL.childitem(...). Could you please correct me out here? qtp hp-uft share|improve this question edited Sep 30 '15 at 19:19 ManishChristian 1,99021123 asked Sep 30 '15 at 5:10 nandesh kalyankar 829 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Create a one
Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service http://stackoverflow.com/questions/32858241/object-required-uft (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density Optimized Mission Critical Servers Servers for Cloud Server Management All Servers Storage All-flash and Hybrid Storage Midrange and Enterprise Storage Entry Storage Systems Data Availability, Protection and Retention Software Defined Storage Management and https://community.hpe.com/t5/Unified-Functional-Testing/Object-required-error-in-function/td-p/4789938 Orchestration Storage Networking All Storage Networking Switches Routers Access Points and Controllers Wireless LAN Campus and Branch Networking Data Center Networking Wide Area Network Software Defined Networking Network Functions Virtualization Network Management All Networking About UsSupportClearType to search2086159Solutions Transform to a Hybrid Infrastructure Protect Your Digital Enterprise Empower the Data-Driven Organization Enable Workplace Productivity Cloud Security Big Data Mobility Infrastructure Internet of Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blad
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeLibraryLearnDownloadsRepositoryCommunityForumsBlog Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: when run VB script with QTP, the error https://social.technet.microsoft.com/Forums/scriptcenter/en-US/d2a9f355-8a19-4271-985e-024b5ccfc715/when-run-vb-script-with-qtp-the-error-appearobject-required-wscriptplease-help-me?forum=ITCG appear"Object required: 'wscript'",please help me Scripting > The Official Scripting Guys Forum! Question 0 Sign in to vote My codes is the following: Set WshShell = CreateObject("WScript.Shell") http://www.vbforums.com/showthread.php?683834-Object-required-String-quot-xxxx-quot WshShell.Run "calc" WScript.Sleep 100 WshShell.AppActivate "Calculator" WScript.Sleep 100 ........ When run to the step "WScript.Sleep 100", the error will appear "Object required:'wscript'". I don't know why the object required error appear, I think my codes should not have problem, Please help me solve the problem, I will thank you very much. Remark: The question is posted other forums, other guys tell me the wscript.exe may be not installed on my system at C:\WINDOWS\system32, but I checked the directory, I found the wscript.exe file, so I don't object required error know why the error appear when run the codes. the error also appear on other computers. Tuesday, August 16, 2011 2:58 PM Reply | Quote Answers 0 Sign in to vote I'm sorry, but I don't know what QTP is. I googled it and found a reference to an HP Quick Test Pro. If that's it, the problem is probably that it is trying to run your script under IE, rather than the Wscript Host. That is, the WScript object is only instantiated by Wscript.exe or cscript.exe (the two WHS host programs). VBS in IE or as an HTA does not support that object. Your script must be executed as a standalone .VBS or .WSH file to use the Sleep function (and ECHO). At least, that's my best guess at what the problem could be.Tom Lavedas Marked as answer by Richard MuellerMVP, Moderator Friday, September 02, 2011 1:29 AM Tuesday, August 16, 2011 3:21 PM Reply | Quote Moderator All replies 0 Sign in to vote I'm sor
this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 Thread: Object required : '[String: "xxxx"] Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Jul 10th, 2012,10:29 AM #1 foufou_qc View Profile View Forum Posts Thread Starter New Member Join Date Jul 2012 Posts 2 Object required : '[String: "xxxx"] Hi What is my error? Code: Const ForReading = 1 Const ForWriting = 2 Set objArgs = Wscript.Arguments If objArgs.Count <> 3 then Wscript.Echo "Manque des paramtres: Fichier ASCII, Valeur recherche puis Nouvelle valeur" End if For I = 0 to objArgs.Count -1 'rgs.Count - 1 WScript.Echo objArgs(I) 'vrifie mes paramtres Select Case I Case 0 : Set FichierASCII = objArgs(I) Case 1 : Set ValeurRecherche = objArgs(I) Case 2 : Set NouvelleValeur = objArgs(I) Case Else : Wscript.Echo "trop de parametres: Fichier ASCII, Valeur recherche puis Nouvelle valeur" End Select Next Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(FichierASCII, ForReading) strText = objFile.ReadAll objFile.Close My first image is my parameter before set to FichierASCII. My second image is my error line 14 : Case 0 : Set FichierASCII = objArgs(I) Why? Thank's a lot Attached Images Reply With Quote Jul 10th, 2012,12:30 PM #2 techgnome View Profile View Forum Posts PowerPoster Join Date May 2002 Posts 29,834 Re: Object required : '[String: "xxxx"] since the objArgs are strings, the variable shouldn't be set.... Set FichierASCII = objArgs(I) Set is only needed for objects... which isn't what you're dealing with here... it should be a simple assignment: FichierASCII = objArgs(I) -tg * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.* * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.* * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft * * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of