I am trying to get all the text (html) in the web page but I get no luck.. Any ideas.
Here is my code:
Code: Select all
XLOpen>C:\Users\1\Desktop\Jane2.xlsx,0,xlBook
let>empty_cell=
WaitWindowOpen>Excel*
let>m=1
XLGetCell>xlBook,Sheet2,%m%,1,competitor
While>competitor<>empty_cell
Add>m,1
XLGetCell>xlBook,Sheet2,%m%,1,competitor
let>competitor%m%=competitor
EndWhile
XLQuit>xlBook
IECreate>IE[0]
IENavigate>IE[0], http://www.amazon.com,ie_res
IEWait>amzon.com
Let>tmp1=Amazon.com*
WindowAction>1,tmp1
Wait>.5
let>mm=2
Repeat>mm
let>ASIN_num=competitor%mm%
IEGetTags>amazon.com,INPUT,O,tags
//find the search box (name=field-keywords)
Let>p=0
Let>k=0
While>p=0
Let>k=k+1
let>my_tag=tags_%k%
//mdl>my_tag
Pos>name="field-keywords",my_tag,1,p
EndWhile
Wait>.5
//Enter a search term in it ...
IETagEvent>amazon.com,INPUT,k,,%ASIN_num%
//Find the Go button
Let>p=0
Let>k=0
While>p=0
Let>k=k+1
Let>go_tag=tags_%k%
Pos>class="nav-input",go_tag,1,p
EndWhile
Wait>.5
//click it ...
IETagEvent>amazon.com,INPUT,k,Click,
IEWait>amzon.com
Wait>3
//**BREAKPOINT**
IEGetURL>IE[0],competitor_url
**BREAKPOINT**
IEGetAllText>competitor_url,2,res
Until>mm=2