Jump to content
Sign in to follow this  
Subin

How to read div class value

Recommended Posts

Subin

i need to read a div class value
  help me please

Edited by Subin

Share this post


Link to post
Share on other sites
Subin

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
Subin

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
Subin

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
Subin

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
Subin

 

 

  <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
Subin

Anyone  know how to read webpage lablel values

Share this post


Link to post
Share on other sites
Subin

 

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  

×