0

I am new to webdriver, need some guidance with the following

What I am looking for is:

if (Login || Password) webelement is not present then a message for elements not present will be present

Error what is displayed

The operator || is undefined for the argument type(s) org.openqa.selenium.WebElement, org.openqa.selenium.WebElement

Using Junit at my end

JimiDini
  • 2,039
  • 12
  • 19
V S
  • 1
  • 7
  • I don't see the question in your text. Can you rephrase it a bit? Important stuff: What are you trying to achieve? What did you try? How does it fail? – JimiDini Oct 01 '13 at 18:07

1 Answers1

1

Do you just want:

if(Login.isDisplayed() == false || Password.isDisplayed() == false )
{
   ...
}

If not, look at the examples here, here, here, here.

Community
  • 1
  • 1
acarlon
  • 16,764
  • 7
  • 75
  • 94
  • Hi acarlon,Thanks ... I have 1 more query just for testing navigate to www.irctc.co.in Click on login without entering the details.U shall get a popup. Is it possible to identify element of this popup,if yes then how? – V S Sep 23 '13 at 14:55
  • @VS http://stackoverflow.com/questions/14939298/handling-a-popup-window-using-selenium – acarlon Sep 23 '13 at 22:25