Jeet1313
Jeet1313

Reputation: 1

Not able to Find Locate the Element through xpath using Selenium IDE

Xpath i am getting is - id('submitButtonWrapper')/x:input for 'Login button'on application but not able to target the field.

URL of the application - https://authentication.liveperson.net/

Upvotes: 1

Views: 613

Answers (3)

NarendraR
NarendraR

Reputation: 7708

Here is the solution of your problem, It will work with clickAt command. So in this way change your code -

Command: clickAt
Target: name=loginButton
Value:

the command specification says -

clickAt(locator, coordString) Arguments:

  1. locator - an element locator
  2. coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.

    Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.

I'm not much clear with this command but i was able to selecting items from chozen dropdowns only with clickAt but not with click command

Upvotes: 0

Happy Bird
Happy Bird

Reputation: 1132

You can find this by using the Record button in Selenium IDE. In case you prefer to do it manually, here is what you should enter:

Command: Click
Target: name=loginButton
Value:

Upvotes: 0

Ag_Yoge
Ag_Yoge

Reputation: 77

Try with the Following Xpath Expression:

Driver.findElement(By.xpath(".//*[@id='submitButtonWrapper']/input")).click();

Upvotes: 1

Related Questions