Sign in to follow this  
Followers 0
Subin

How to read div class value

12 posts in this topic

#1 ·  Posted (edited)

i need to read a div class value
  help me please

Edited by Subin

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

i am attaching the web page screen shot..........

actually i need to get som evalues from that page

like

sku

name

price

Share this post


Link to post
Share on other sites

 

 

  <div class="search-results">

  <div class="product">

  <div class="product-image"></div>

  <div class="product-details"></div>

Share this post


Link to post
Share on other sites

Anyone  know how to read webpage lablel values

Share this post


Link to post
Share on other sites

#11 ·  Posted (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 by Subin

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0