Subin Posted February 5, 2015 Posted February 5, 2015 (edited) i need to read a div class value help me please Edited February 5, 2015 by Subin
jguinch Posted February 5, 2015 Posted February 5, 2015 how could we help you with so little information?. Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Subin Posted February 5, 2015 Author Posted February 5, 2015 how could we help you with so little information?. i used these queries for gettig textboc control and button controls $oQuery = _IEFormElementGetObjByName($oForm, "search_input") $o_Query = _IEFormElementGetObjByName($oForm, "search_type") $oSubmit = _IEFormElementGetObjByName($oForm, "submit") now i need to read some lablel values
Subin Posted February 5, 2015 Author Posted February 5, 2015 i used these queries for gettig textboc control and button controls $oQuery = _IEFormElementGetObjByName($oForm, "search_input") $o_Query = _IEFormElementGetObjByName($oForm, "search_type") $oSubmit = _IEFormElementGetObjByName($oForm, "submit") now i need to read some lablel values how can we read label values in a web page
jguinch Posted February 5, 2015 Posted February 5, 2015 So at least, give a sample of your html source, and the result that you expect Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Subin Posted February 5, 2015 Author Posted February 5, 2015 So at least, give a sample of your html source, and the result that you expect i am attaching the web page screen shot.......... actually i need to get som evalues from that page like sku name price
Subin Posted February 5, 2015 Author Posted February 5, 2015 i am attaching the web page screen shot.......... actually i need to get som evalues from that page like sku name price
Subin Posted February 5, 2015 Author Posted February 5, 2015 <div class="search-results"> <div class="product"> <div class="product-image"></div> <div class="product-details"></div>
Subin Posted February 5, 2015 Author Posted February 5, 2015 Anyone know how to read webpage lablel values
jguinch Posted February 5, 2015 Posted February 5, 2015 Try with _IETagNameGetCollection : $oDivs = _IETagNameGetCollection($oIE, "div") For $oDiv In $oDivs ConsoleWrite($oDiv.classname & @CRLF) Next Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Subin Posted February 6, 2015 Author Posted February 6, 2015 (edited) Try with _IETagNameGetCollection : $oDivs = _IETagNameGetCollection($oIE, "div") For $oDiv In $oDivs ConsoleWrite($oDiv.classname & @CRLF) Next using the above query i got the class name but I need to read this sku value 3113172 <div class="sku"><span>SKU:</span> 3113172</div> Edited February 6, 2015 by Subin
junkew Posted February 6, 2015 Posted February 6, 2015 please study a decent html DOM book (you can search plenty on internet with google) http://www.w3schools.com/jsref/dom_obj_all.asp nodevalue, value, textcontent, innerhtml properties can all help you FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now