Share
View previous topicGo downView next topic
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

[solved]how to run selenium ide test with webdriver

on Wed Jan 25, 2012 7:34 pm
hi guys

I have some tests made with selenium IDE but I want to be able to test in other browsers too
so can anyone help me with a guide how to configure java and webdriver (im using netbeans) and convert my tests in java
i tried to export my test as JUnit but when i open the file in netbeans i have errors on almost all lines......

or if there is a way to convert my tests in php that will be the perfect solution


Last edited by zlos7ar on Fri Jan 27, 2012 8:57 pm; edited 1 time in total
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Re: [solved]how to run selenium ide test with webdriver

on Wed Jan 25, 2012 10:01 pm
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Re: [solved]how to run selenium ide test with webdriver

on Wed Jan 25, 2012 10:32 pm
hi thanks for the info but still not working
I have to remove the line < ?xml version="1.0" encoding="UTF-8"? > only from the test suite or from all the tests ? I removed it from all tests and its not working....
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Re: [solved]how to run selenium ide test with webdriver

on Wed Jan 25, 2012 10:41 pm
I installed Eclipse. Exported my test as Junit4 (WebDriver Backed) and added all the libraries but i guess im still missing something (look at the picture)

[img][/img] can't find SelenseTestCase....
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Re: [solved]how to run selenium ide test with webdriver

on Wed Jan 25, 2012 11:34 pm
if someone can send me the right library for the SelenseTestCase would be great, because for some reason the latest file in the official website does not have it inside....
qappbc
Amateur
Amateur
Posts : 38
Join date : 2011-10-13

Re: [solved]how to run selenium ide test with webdriver

on Thu Jan 26, 2012 2:15 pm
1) Cannot see your image - too small here

2) Use SeleneseTestBase instead or better...

3) Do no extend the class. Use DefaultSelenium since SeleneseTestCase has been deprecated

zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Re: [solved]how to run selenium ide test with webdriver

on Thu Jan 26, 2012 3:38 pm
http://i41.servimg.com/u/f41/17/21/82/03/pic111.png
here is a bigger picture

The code is automatically generated by the selenium IDE export function
Im kinda new to java can you help me with an example of how to change it ?
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 29
Location : Germany

Re: [solved]how to run selenium ide test with webdriver

on Thu Jan 26, 2012 4:19 pm
I managed to make it work thanks for the advice
Just one more question Smile Is there a way to make it test a bit slower so i can see what exactly is going on and I also want to make it not close the browser when something fails...
qappbc
Amateur
Amateur
Posts : 38
Join date : 2011-10-13

Re: [solved]how to run selenium ide test with webdriver

on Fri Jan 27, 2012 2:02 am
selenium.setSpeed("2000"); //where speed = 2000mS

In java you can avoid the line - selenium.close()
Selenium.close() - closes the browser
selenium.stop() - closes the RC log window
Sponsored content

Re: [solved]how to run selenium ide test with webdriver

View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum