08-26-2013, 03:24 AM
(This post was last modified: 08-26-2013, 03:26 AM by Novemberrain81.)
Hello all. I am trying to work on a practice project.
I am working with finance.yahoo.com I have the following code
After this I am trying to get the outertext value from the Last Closing Price, which is an webelement and the biggest text size.
Now my questions...if the webelements dynamic I can get the value using hard coded property values. However I have a whole bunch of stock symbols I am reading in from excel which is within a for loop. And the required property values for the webelement chages with every iteration of the for loop. So how do I deal with this?
Webtable will not work as this webelement is not within a webtable. If it was, I would simply use getcelldata.
I am also attaching a file with a little description.
PS I am practice with Static Descriptive programming as of right now.
Thank you in advance for any help.
I am working with finance.yahoo.com I have the following code
Code:
systemutil.Run "iexplore.exe","finance.yahoo.com"
Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("html tag:= INPUT","type:=text","name:=s","value:=Enter Symbol").Set "NFLX"
Browser("micclass:=Browser").Page("micclass:=Page").WebButton("html tag:= INPUT","name:= Look Up","type:= Submit","Value:=Look Up","html id:=btnQuotes").Click
After this I am trying to get the outertext value from the Last Closing Price, which is an webelement and the biggest text size.
Now my questions...if the webelements dynamic I can get the value using hard coded property values. However I have a whole bunch of stock symbols I am reading in from excel which is within a for loop. And the required property values for the webelement chages with every iteration of the for loop. So how do I deal with this?
Webtable will not work as this webelement is not within a webtable. If it was, I would simply use getcelldata.
I am also attaching a file with a little description.
PS I am practice with Static Descriptive programming as of right now.
Thank you in advance for any help.