leeleoo / flash-selenium

Automatically exported from code.google.com/p/flash-selenium
0 stars 0 forks source link

Unable to create object for FlashSelenium.FlashSelenium #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add new FlashSelenium.dll in to the project
2. declare private FlashSelenium.FlashSelenium flashApp
3. create an oblect of  ISelenium 
4. Intialize selenium
5. start selenium
6. flashApp = new FlashSelenium.FlashSelenium(selenium,"flashObjectId");

What is the expected output? What do you see instead?
flashApp object should be intialized or created.
but i see 
Error   14 The type 'Selenium.ISelenium' is defined in an assembly that is 
not referenced. You must add a reference to 
assembly 'ThoughtWorks.Selenium.Core, Version=0.0.0.0, Culture=neutral, 
PublicKeyToken=null'.   

Error   15  The best overloaded method match 
for 'FlashSelenium.FlashSelenium.FlashSelenium(Selenium.ISelenium, 
string)' has some invalid arguments

Error   16  Argument '1': cannot convert from 'Selenium.ISelenium 
[c:\TestSolution\Referenced Assemblies\ThoughtWorks.Selenium.Core.dll]' 
to 'Selenium.ISelenium []'
What version of the product are you using? On what operating system?
Selenium nightly build and flashselenium revision 25
Windows XP
Visual Studio Test Team 2008
Please provide any additional information below.

Original issue reported on code.google.com by karthik....@gmail.com on 21 Nov 2008 at 9:33

GoogleCodeExporter commented 8 years ago
Soory, I missed some dll, now i am able to create object for 
FlashSelenium.FlashSelenium 

Original comment by karthik....@gmail.com on 25 Nov 2008 at 8:01

GoogleCodeExporter commented 8 years ago
Hey Karthik,
Glad that it worked.

Original comment by sachin.s...@gmail.com on 26 Nov 2008 at 12:27

GoogleCodeExporter commented 8 years ago
Namespace and class name both are same so you need to create object using 
something 
like following syntax 

FlashSelenium.FlashSelenium flashApp = new FlashSelenium.FlashSelenium
(selenium, "my_activity");

Original comment by ybh...@gmail.com on 30 Nov 2008 at 5:21

GoogleCodeExporter commented 8 years ago
Some one told me that "flash-selenium uses really old version of Selenium. you 
can download the "ThoughtWorks.Selenium.Core.dll" from here: 
http://code.google.com/p/flash-selenium/source/browse/
though that version requires old RC deploy"

I downloaded that old library. But I could not added the 
"ThoughtWorks.Selenium.Core.dll" as a reference into my project as it is not a 
.net based dll. 
I also tried to use NuGet to install from online and locally. and did not work. 

I believe that NuGet installs the .net based version. 
Can anyone please help me with this. 
Thanks. 

Original comment by bw_will...@hotmail.com on 19 Apr 2012 at 1:44

GoogleCodeExporter commented 8 years ago
Hi Karthik,

I need your help on Flash-WebDriver framework.

I did the same thing as you mentioned:
1. Add new FlashSelenium.dll in to the project
2. declare private FlashSelenium.FlashSelenium flashApp
3. create an oblect of  ISelenium 
4. Intialize selenium
5. start selenium
6. flashApp = new FlashSelenium.FlashSelenium(selenium,"flashObjectId");

And getting the below error

Error   5   The type 'Selenium.ISelenium' is defined in an assembly that is not 
referenced. You must add a reference to assembly 'ThoughtWorks.Selenium.Core, 
Version=0.0.0.0, Culture=neutral, 
PublicKeyToken=null'.   D:\Project\E2020\19Oct\Education2020_VC_18-Oct-2012\Educat
ion2020_VC\PageHelper\comm\DriverTestCase.cs    55  13  Education2020

Error   6   The best overloaded method match for 
'FlashSelenium.FlashSelenium.FlashSelenium(Selenium.ISelenium, string)' has 
some invalid 
arguments   D:\Project\E2020\19Oct\Education2020_VC_18-Oct-2012\Education2020_VC\P
ageHelper\comm\DriverTestCase.cs    55  21  Education2020

Error   7   Argument 1: cannot convert from 'Selenium.ISelenium [c:\Documents and 
Settings\admin\Desktop\ThoughtWorks.Selenium.Core.dll]' to 
'Selenium.ISelenium'    D:\Project\E2020\19Oct\Education2020_VC_18-Oct-2012\Educati
on2020_VC\PageHelper\comm\DriverTestCase.cs 55  53  Education2020

please suggest which dll file i have to include on my project.

Thanks,
Atin

Original comment by at...@360logica.com on 24 Oct 2012 at 11:25