Manual and Automated Testing
›
General Discussion
Search
everywhere
only in this topic
Advanced Search
Need value from HTML source
Classic
List
Threaded
♦
♦
Locked
4 messages
poornima hebbar
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Need value from HTML source
Hi Tarun,
With the below provided html thing i want to get only the price value how do i do that from selenium 1.0
£121.50
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need value from HTML source
Administrator
Hello Poornima,
Welcome to group.
Did you try getText API -
http://selenium.googlecode.com/svn/trunk/docs/api/java/com/thoughtworks/selenium/DefaultSelenium.html#getText(java.lang.String
)
You could use class name 'cost' for locating the object.
~ seleniumtests.com
poornima hebbar
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need value from HTML source
THanks Tarun. but i forgot to mention that cost tag is appearing more than once in HTML page
£12.50
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need value from HTML source
Administrator
Could you post small version of your html?
It's only that you need to reach this element and get the text.
~ seleniumtests.com
Free forum by Nabble
Edit this page