Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion unable to add Selenium2Library in RIDE

Received: by 10.66.90.36 with SMTP id bt4mr11580275pab.5.1351678525452;
        Wed, 31 Oct 2012 03:15:25 -0700 (PDT)
X-BeenThere: robotframework-users@googlegroups.com
Received: by 10.68.236.33 with SMTP id ur1ls5631905pbc.2.gmail; Wed, 31 Oct
 2012 03:15:23 -0700 (PDT)
Received: by 10.66.81.195 with SMTP id c3mr11762325pay.44.1351678523773;
        Wed, 31 Oct 2012 03:15:23 -0700 (PDT)
Received: by 10.66.81.195 with SMTP id c3mr11762323pay.44.1351678523761;
        Wed, 31 Oct 2012 03:15:23 -0700 (PDT)
Return-Path: <gaurav...@gmail.com>
Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47])
        by gmr-mx.google.com with ESMTPS id r4si758238paz.1.2012.10.31.03.15.23
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 31 Oct 2012 03:15:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of gaurav...@gmail.com designates 209.85.220.47 as permitted sender) client-ip=209.85.220.47;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gaurav...@gmail.com designates 209.85.220.47 as permitted sender) smtp.mail=gaurav...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-pa0-f47.google.com with SMTP id fa11so789629pad.6
        for <robotframework-users@googlegroups.com>; Wed, 31 Oct 2012 03:15:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:content-type:content-transfer-encoding;
        bh=QTuV0WNmBzIV7Ac24/BgLBR4oIBF4g2YVvO67xd1g1s=;
        b=u0AIs9RoPpSCG3JDFzN8ASrP19eJ3wVPSbY+gLAMLvRT8yeLL8I11aoNie/oQJ88oF
         4oZoimDvGXN1+EgewmSTryEssuD565DsW/cJTSFcAo7U4loNlEIEt1oC50tDYRAi6uHu
         IIyYC5l6AGOWeSl5Y6yYuiAE+R4Ez7Qf/JxYp69rjST2SblUrorvYZACSmTF3RnCZJqO
         TkxYYfp+OU8PlOY7ZXxX71pT/J48e8No6pWGKzTQ2rWoDYz4AYedNeAZuPFtpx8HYnNL
         VgvNYB/JTJ+1zHZNYjWILyTdPajp65gpNU5icnKyJCVtQdH9W/1c3Q6O9oEPLKdl2ZOz
         Mw2g==
Received: by 10.66.73.65 with SMTP id j1mr28147745pav.68.1351678523588; Wed,
 31 Oct 2012 03:15:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.66.100.200 with HTTP; Wed, 31 Oct 2012 03:15:02 -0700 (PDT)
In-Reply-To: <C9FEFC4D-CD5F-4BF4-9640-DD2215C2F...@gmail.com>
References: <CAO9bYDw2ZQr+GBaa8-WOX65n3xxzpri6mx-BYardP3+Go7R...@mail.gmail.com>
 <CACXFLVcoX4pHrDsN0y76o_dV4Qv1JPyEiVQAq6U1iYLhDpZ...@mail.gmail.com>
 <CAO9bYDwus2g11ZhTPLnpGH7V0HRtzJnZOtDFjNLN91Bn3oo...@mail.gmail.com> <C9FEFC4D-CD5F-4BF4-9640-DD2215C2F...@gmail.com>
From: GAURAV DEORE <gaurav...@gmail.com>
Date: Wed, 31 Oct 2012 06:15:02 -0400
Message-ID: <CAO9bYDyb8tNn5pPbn7x=pAFMySHDvgteDKPM9Y_FXKhdK8+...@mail.gmail.com>
Subject: Re: unable to add Selenium2Library in RIDE
To: Mikko Korpela <mikko.korp...@gmail.com>
Cc: =?UTF-8?Q?Pekka_Kl=C3=A4rck?= <p...@iki.fi>, 
	"robotframework-users@googlegroups.com" <robotframework-users@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Mikko,

 I did it as u explained with help of mentioned URL but still
Selenium2Library is not accessible. When I went to the Python prompt &
text import Selenium2Library. Its showing message at the end like -

From Selenium import Webdriver
ImportError:No Module name Selenium

So to solve this What should I do? Shall I add Selenium.py from
SeleniumLIbrary or Do need to add any other selenium module?

Even I mentioned Path  C:\Python27\Lib\site-packages in Environment
variable. - Is it necessary to mentioned it?

Please Clear me to go ahead to use of Selenium2Library.

Thanks,
Gaurav Deore


On Tue, Oct 30, 2012 at 12:07 AM, Mikko Korpela <mikko.korp...@gmail.com> w=
rote:
> Hi,
>
> Selenium2Library installation documentation says that decorator module ne=
eds
> to be installed separately.
>
> https://github.com/rtomac/robotframework-selenium2library/blob/master/INS=
TALL.rst
>
> http://pypi.python.org/pypi/decorator/
>
> Hope this helps!
> Mikko Korpela
>
> GAURAV DEORE <gaurav...@gmail.com> kirjoitti 30.10.2012 kello 4.49:
>
> Hi,
>
> Yes, ur right its showing error details as its Fail to import
> Selenium2Library in RIDE.
>
> Below is the error details I took from Tools> View RIDElog ----------->
>
> 20121030 07:08:03.337 [INFO]: Started RIDE 0.51 using python version
> 2.7.3 with wx version 2.8.12.1 in win32.
>
> 20121030 07:08:07.428 [WARN]: Importing test library "Selenium2Library"
> failed
>
> Traceback (most recent call last):
> Importing test library 'Selenium2Library' failed: ImportError: No
> module named decorator
> Traceback (most recent call last):
>  File "C:\Python27\lib\site-packages\Selenium2Library\__init__.py",
> line 2, in <module>
>    from keywords import *
>  File "C:\Python27\lib\site-packages\Selenium2Library\keywords\__init__.p=
y",
> line 1, in <module>
>    from _logging import _LoggingKeywords
>  File "C:\Python27\lib\site-packages\Selenium2Library\keywords\_logging.p=
y",
> line 5, in <module>
>    from keywordgroup import KeywordGroup
>  File
> "C:\Python27\lib\site-packages\Selenium2Library\keywords\keywordgroup.py"=
,
> line 4, in <module>
>    from decorator import decorator
> PYTHONPATH:
>  C:\Python27\lib\site-packages\robotide\lib\robot\libraries
>  C:\Python27\lib\site-packages\robotide\lib
>  C:\Python27\lib\site-packages\wx-2.8-msw-unicode
>  C:\Python27\lib\site-packages\wx-2.8-msw-unicode
>  c:\Python27\Scripts
>  C:\Windows\system32\python27.zip
>  C:\Python27\DLLs
>  C:\Python27\lib
>  C:\Python27\lib\plat-win
>  C:\Python27\lib\lib-tk
>  C:\Python27
>  C:\Python27\lib\site-packages
>  .
>  C:\Python27\lib\site-packages\robotide\spec
>  File "C:\Python27\lib\site-packages\robotide\spec\librarymanager.py",
> line 75, in _fetch_keywords
>    return get_import_result(path, library_args)
>  File "C:\Python27\lib\site-packages\robotide\spec\libraryfetcher.py",
> line 20, in get_import_result
>    lib =3D TestLibrary(path, args)
>  File
> "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.p=
y",
> line 37, in TestLibrary
>    libcode =3D importer.import_class_or_module(name)
>  File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py=
",
> line 64, in import_class_or_module
>    self._raise_import_failed(name, err)
>  File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py=
",
> line 102, in _raise_import_failed
>    raise DataError('\n'.join(msg))
>
> Please revert back with solutions on this.
>
> Thanks,
> Gaurav
>
> On Mon, Oct 29, 2012 at 4:15 PM, Pekka Kl=C3=A4rck <p...@iki.fi> wrote:
>
> 2012/10/28 GAURAV DEORE <gaurav...@gmail.com>:
>
>
> As I am using RobotFramework 2.7.4 &  RIDE version 0.51. As I wanted
>
> to use Selenium2Library  instead of SeleniumLibrary  so I installed
>
> Selenium2Library and tried to used it in RIDE but its not accepting
>
> it, showing its in RED color.
>
>
> Did you take Selenium2Library into use in your test data? RIDE doesn't
>
> know about libraries installed into your system otherwise. If that
>
> doesn't work, you can take a look does at RIDE's log (Tools > View
>
> RIDE Log) contain anything suspicious.
>
>
> Cheers,
>
>    .peke
>
> --
>
> Agile Tester/Developer/Consultant :: http://eliga.fi
>
> Lead Developer of Robot Framework :: http://robotframework.org
>
>
>
>
> --
> ------------------------------
> Warm Regards,
> GAURAV S. DEORE.
>
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To post to this group, send email to robotframework-us...@googlegroups.co=
m.
> To unsubscribe from this group, send email to
> robotframework-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robotframework-users?hl=3Den.
>



--=20
------------------------------
Warm Regards,
GAURAV S. DEORE.