Menu

Selenium

2013-11-12
2013-12-22
  • gideongurarie

    gideongurarie - 2013-11-12

    Is Selenium Sys Object is part of the release? and is there implemantsion of webdriver as the following HtmlUnitDriver as Sys Object?

     
  • Zahi (Zack) Zilberman

    Hi and welcome to the Selenium junkies :)

    JSystem contains a wrapper for the Selenium driver. you can see the following thread for example on the subject: selenium System Object

    Did this answer your question?

     
  • Itai Agmon

    Itai Agmon - 2013-12-03

    JSystem WebDriver system object sources are hosted in GitHub.
    You can also add it as artifact to your JSystem Maven POM file:

    <dependency>
      <groupId>org.jsystemtest.systemobjects</groupId>
      <artifactId>webdriver-so</artifactId>
      <version>1.0.10</version>
    </dependency>
    
     
    • KWood

      KWood - 2013-12-21

      Just to be clear, do I put that dependency in the pom.xml of my system object project? If so, do I then do a maven install to get the dependency code to download into the local Maven repository? How do I then access the system objects in my own code? I'm just now checking out the git site which may well address any or all of this. ; )

      When things go well, I can do quite a bit with Maven and Selenium, but when things go off the rails, my lack of real understanding bites me in the rear! Thanks in advance for any advice you can offer.

       

      Last edit: KWood 2013-12-21
      • KWood

        KWood - 2013-12-21

        I see on the git site, 'Saving the browser state between tests' YES! This is a huge hurdle I need to surmount in order to make my test components in JSystem modular. I'm going through the code on the site now, but any hints you can offer on this idea would be great.

         
  • KWood

    KWood - 2013-12-21

    Zack,

    I checked out the thread with the example code, but can't figure out how to get the imports to resolve correctly. Using eclipse, I put the dependency show above into my pom and then did a maven 'install' run. I then created a system object project in addition to the tests project I already have and tried pasting in the system object code from the example in the post (using my own package name - is that correct?) but could not get the imports to resolve. I realize this betrays a lack of understanding of how java projects are assembled, rather than any problem with JSystem in particular, but any help you could offer could go a long way towards my getting a better understanding of how this all works!

    Thanks,

    -Kent

     
  • Zahi (Zack) Zilberman

    Hi Kent,
    If you added the maven dependency, you should be able to initialize the web driver. I recommend using the build command 'Clean Install' , not just 'Install'.
    If it doesn't help, try see the maven error when you build it again and paste it here.
    good luck

     
  • KWood

    KWood - 2013-12-22

    Thanks, Zack. I did get the imports to resolve, but still much to learn!

     
  • Zahi (Zack) Zilberman

    “Tell me and I forget, teach me and I may remember, involve me and I learn.”
    ― Benjamin Franklin

    Glad to have helped.

     

Log in to post a comment.