+ Reply to Thread
Results 1 to 7 of 7

Selenium Wrapper

  1. #1
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Selenium Wrapper

    Hi guys ive been gone from this forum for quite sometime as Ive been able to handle most problem without your expertise.

    I recentley downloaded selenium wrapper and im working on a scraper script. Ive just started to dip into the code and so far this is what I got;

    Please Login or Register  to view this content.
    Running this code does indeed give me my desired results. However im not able to stop the loop. :/

    this line does not seam to work
    Please Login or Register  to view this content.
    Ive also tried:
    on error goto 0

    but none of this works: I get Run-time error 7
    "element not found for class=hometeam"

    How can I make the script stop before getting this error ?
    any help would be much appreciated

    regards

    frederik

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Selenium Wrapper

    Maybe there is not Text property for the class?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Selenium Wrapper

    but it does return result with this:

    Please Login or Register  to view this content.
    for now I came up with this work around , but its far from perfect:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Selenium Wrapper

    Perhaps you could try something like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Selenium Wrapper

    hi thanks Norie., Ill try that.. im sure it will work . Im currently trying to scrape some javascript content from a web page. Do you have a lot of experience with selenium ?

    edit:

    Its tested and your suggestion works but I recall using something quite similar like "if not is nothing" and it slows down the script around 100% or so
    Last edited by colddeck84; 11-13-2017 at 03:55 PM.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Selenium Wrapper

    Did you have a go on Python?

  7. #7
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Selenium Wrapper

    Hi AB33
    - no not yet, things are moving a little slowly. Also I've been busy with life + work. But I have done quite some reasearch on it and I will definitely make a shift to phyton. I found some great articles about it , But (re)making all of my work into a working application would take quite some time with my skillset. So for now I'm stuck with excel I guess

    Playing a little around with this selenium wrapper as of now. Im really interested in scraping those elusive javascript rendered sites. Ive been struggling with this for quite some time

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HTML scraping with a help of Selenium
    By ChipsSlave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2018, 12:12 AM
  2. Selenium fails to launch Chrome
    By AGolinsky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2017, 11:30 AM
  3. Issue with Selenium and driver as a variable?
    By TE5LA in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-07-2015, 04:23 PM
  4. VBA and Selenium
    By cabroncito29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2015, 10:46 AM
  5. Creating a second workbook to act as a wrapper or front end
    By Poindexter3709 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 04:03 PM
  6. Need Help with Nested Errors and Selenium
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2014, 10:02 AM
  7. [SOLVED] RTD wrapper functions do not work in Excel 2007
    By peterhoa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2006, 08:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1