import org.openqa.selenium.By;

804 views
Skip to first unread message

Mrunal

unread,
May 16, 2013, 6:16:40 AM5/16/13
to seleniu...@googlegroups.com
The import org.openqa.selenium.By; is never used, What this warning for?

Mark Collin

unread,
May 16, 2013, 6:29:52 AM5/16/13
to seleniu...@googlegroups.com
At a guess because you are not using By.<something> in that class



On 16/05/2013 11:16, Mrunal wrote:
The import org.openqa.selenium.By; is never used, What this warning for?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8db6298f-443c-40b9-a868-79c06be0742c%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mrunal

unread,
May 16, 2013, 7:37:53 AM5/16/13
to seleniu...@googlegroups.com
Thanks Mark. But please check the image all 5 statements have same Error!

Jon Valvano

unread,
May 16, 2013, 8:07:26 AM5/16/13
to seleniu...@googlegroups.com
This is an eclipse/java topic and not a Selenium topic.

Don't worry about the import warning messages.   Typically, it means that the IDE has found imports for classes that are never used.
Here is a good read on why these warnings are not a big deal

If you are in eclipse (which it looks like you might be) then just use the "Organize Imports" function.    I use the keyboard shortcut Crtl+Shift+O in eclipse to manage the imports.  


good luck.


On Thu, May 16, 2013 at 6:16 AM, Mrunal <mrunal.b...@gmail.com> wrote:
The import org.openqa.selenium.By; is never used, What this warning for?

--

Mark Collin

unread,
May 16, 2013, 8:27:39 AM5/16/13
to seleniu...@googlegroups.com
So that tells me you are not using any of them in your class.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Mrunal

unread,
May 17, 2013, 1:57:34 AM5/17/13
to seleniu...@googlegroups.com
Hey j0n0th0n thanks. Yes I am using Eclipse.

Message has been deleted

Mrunal

unread,
May 17, 2013, 2:48:23 AM5/17/13
to seleniu...@googlegroups.com
It works!
Output:
"BeanShell 1.3.0 - by Pat Niemeyer
bsh % c"
What is this Error?
 
 

Mrunal

unread,
May 17, 2013, 6:36:55 AM5/17/13
to seleniu...@googlegroups.com

Also If I used HtmlunitDriver, I am getting below Error

Exception in thread "main"

java.lang.UnsupportedOperationException: Window handling not yet implemented in HtmlUnit

at org.openqa.selenium.htmlunit.HtmlUnitDriver$HtmlUnitOptions.window(

HtmlUnitDriver.java:1233)

at Dxp.DxpDisplay.main(

DxpDisplay.java:14)

 

Krishnan Mahadevan

unread,
May 20, 2013, 1:48:15 AM5/20/13
to Selenium Users
Mrunal,
That UnsupportedOperationException error is a valid one because HtmlUnitDriver STILL has no implementation for that.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages