addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartrashtriangle-downtriangle-uptwitteruseryahoo

Re: [ljc] Web Selenium

From: Alan P.
Sent on: Tuesday, July 3, 2012 12:36 PM
I would be careful using HTMLUnit or HtmlUnitDriver when Javascript is involved. HTMLUnit uses the Rhino JavaScript engine and no major Web Browser uses it.

If your going to learn Selenium I would focus on the learning the WebDriver API (Selenium 2.0+) as this is where all the development effort is going within the project.

I would recommend avoiding xpath where possible for finding "elements" within a web page for two reasons:
 1) xpath lookup performance using IE is very very bad
 2) xpath lookups can be very brittle, just adding a single additional html element to page can often be enough to the stop the xpath lookup

Looking at the Groupon page they use a good amount of element id's and CSS classes within their HTML, so using CSS selectors to find elements should work well.

One tip I always give people new to Selenium is to learn about the page object pattern http://code.google.com/p/selenium/wiki/PageObjects It saves you a lot of pain in the long run when you have to maintain a suite of tests

Cheers,

Alan

On 3 July[masked]:47, Pawel Krupinski <[address removed]> wrote:
Scraping is bad for you.
HTMLUnit will probably do the trick, you don't need Selenium.
Otherwise just use HTTP client and HTML parser.

     Cheers
     Paweł

On Tue, Jul 3, 2012 at 5:25 AM, alexander sharma
<[address removed]> wrote:
> Hi
>
> Anybody here who knows how to use Web Selenium, tutorials etc is it a plugin
> in eclipse.
> Is web selenium for testing live website for example how would I extract all
> deals from Groupon website using Web Selenium.
>
> Any help appreciated.
>
> Please contact me at [address removed]
>
> Thanks!
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on
> this mailing list ([address removed])
> This message was sent by alexander sharma ([address removed]) from
> LJC - London Java Community.
> To learn more about alexander sharma, visit his/her member profile
> Set my mailing list to email me As they are sent | In one daily email |
> Don't send me mailing list messages
>
> Meetup, PO Box 4668 #37895 New York, New York[masked] |
> [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/Londonjavacommunity/
This message was sent by Pawel Krupinski ([address removed]) from LJC - London Java Community.
To learn more about Pawel Krupinski, visit his/her member profile: http://www.meetup.com/Londonjavacommunity/members/6361532/
Set my mailing list to email me

As they are sent
http://www.meetup.com/Londonjavacommunity/list_prefs/?pref=1

In one daily email
http://www.meetup.com/Londonjavacommunity/list_prefs/?pref=2

Don't send me mailing list messages
http://www.meetup.com/Londonjavacommunity/list_prefs/?pref=0
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]


Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference in collaboration with the LJC, 8-10th June 16

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • IBM

    Build Enterprise-grade apps at start-up speed.

  • New Relic

    New Relic makes sense of billions of metrics a day in real time.

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

  • Craft Rebellion

    Your choice of fresh craft beer, delivered. For 10% off use ‘LJC'

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy