Reputation: 1
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
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:
- locator - an element locator
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
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
Reputation: 77
Try with the Following Xpath Expression:
Driver.findElement(By.xpath(".//*[@id='submitButtonWrapper']/input")).click();
Upvotes: 1