help with javascript: Get text from a certain xpath.

Status
Not open for further replies.

Elico A

Member
24
2010
0
0
Hey guys,
i wanted to ask your help with a little script i need.

I need a script to get text from a website by it's xpath and put it into a virable.

for example:
1. go to www.wjunction.com
2. get text from:
Code:
xpath=//div[@id='header']/div[@class='wrapper']/div[@class='memberBox']/div[@class='loginBox']/div[@class='memberInfo']/span[@class='time']
(this is the xpath of the last time i visited)
3. Put the text into a virable called "lasttimevisited"

so when i use this virable it will show me the last time i visited (or another text i choose by the xpath and the website i define in the code)

can somebody help with it ?
 
Status
Not open for further replies.
Back
Top