WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: George Vagenas on September 24, 2014, 06:50:13 PM

Title: Need Help with a Web page
Post by: George Vagenas on September 24, 2014, 06:50:13 PM
I have a script that uses Internet Explorer to navigate to http://www.imdb.com/, this code used to work fine
Code (winbatch) Select
   msieDoc = Msie.Document
   msieAll = msieDoc.all
   
   msieType = msieAll.q
   msieType.value = Lkp
   Button = FindButton(Msie, 'submit')
   button.click
where Lkp contains the title of a movie I want to lookup.  This line "msieType.value = Lkp " is working fine and the Title is appearing in the search bar, but the code is not clicking the search button.

I believe this is the relevant part of the source file
Code (html5) Select

  <button id="navbar-submit-button" class="primary btn" type="submit"><div class="magnifyingglass navbarSprite"></div></button>
  <input type="hidden" name="ref_" value="nv_sr_fn" />
  <input type="text" autocomplete="off" value="" name="q" id="navbar-query" placeholder="Find Movies, TV shows, Celebrities and more..." >

As usual any help is appreciated.
Title: Re: Need Help with a Web page
Post by: td on September 25, 2014, 06:49:26 AM
Perhaps answers to one of your previous posts may offer a hint of a solution:

http://forum.winbatch.com/index.php?topic=923.msg4075#msg4075 (http://forum.winbatch.com/index.php?topic=923.msg4075#msg4075)
Title: Re: Need Help with a Web page
Post by: George Vagenas on September 28, 2014, 12:31:51 PM
Perhaps I need to have my brain sanforized, I totally forgot about that post.  That's the trouble with leveraging other peoples' work to accomplish a task, I got that script working again but obviously I didn't learn anything in the process.
I've used Directory Opus to get a list of files containing ".all".  I'll review them and revise any scripts that I may have a use for while its still clear what I need to do.
Sorry for not replying sooner.