{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2410","labels_url":"https://api.github.com/repos/angular/protractor/issues/2410/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2410/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2410/events","html_url":"https://github.com/angular/protractor/issues/2410","id":99610151,"number":2410,"title":"xpath not working in protractor","user":{"login":"manojtdm","id":13692001,"avatar_url":"https://avatars.githubusercontent.com/u/13692001?v=3","gravatar_id":"","url":"https://api.github.com/users/manojtdm","html_url":"https://github.com/manojtdm","followers_url":"https://api.github.com/users/manojtdm/followers","following_url":"https://api.github.com/users/manojtdm/following{/other_user}","gists_url":"https://api.github.com/users/manojtdm/gists{/gist_id}","starred_url":"https://api.github.com/users/manojtdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojtdm/subscriptions","organizations_url":"https://api.github.com/users/manojtdm/orgs","repos_url":"https://api.github.com/users/manojtdm/repos","events_url":"https://api.github.com/users/manojtdm/events{/privacy}","received_events_url":"https://api.github.com/users/manojtdm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T09:02:42Z","updated_at":"2015-08-07T17:45:19Z","closed_at":null,"body":"xpath not working in protractor.I ahve cretaed xpath using firebug.When I identify the xpath using IDE,it is working fine.However when I use the same xpath in protractor,it is not working.My element does not have id or name.So here i can use only xpath option.\r\n\r\nPlease find the below image for reference.\r\nHere I need to verify whether that particular element has \"IRCTC Attractions\" text.\r\nCould you please help me?\r\n\r\nHTML code:\r\n\r\n//div style=\"width:100%;\" class=\"g_hedtext\">IRCTC Attractions /div\r\n\r\n![untitled](https://cloud.githubusercontent.com/assets/13692001/9132406/ef9f210c-3d10-11e5-8cd2-17cc2ee32728.png)"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/128776010","html_url":"https://github.com/angular/protractor/issues/2410#issuecomment-128776010","issue_url":"https://api.github.com/repos/angular/protractor/issues/2410","id":128776010,"user":{"login":"manojtdm","id":13692001,"avatar_url":"https://avatars.githubusercontent.com/u/13692001?v=3","gravatar_id":"","url":"https://api.github.com/users/manojtdm","html_url":"https://github.com/manojtdm","followers_url":"https://api.github.com/users/manojtdm/followers","following_url":"https://api.github.com/users/manojtdm/following{/other_user}","gists_url":"https://api.github.com/users/manojtdm/gists{/gist_id}","starred_url":"https://api.github.com/users/manojtdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojtdm/subscriptions","organizations_url":"https://api.github.com/users/manojtdm/orgs","repos_url":"https://api.github.com/users/manojtdm/repos","events_url":"https://api.github.com/users/manojtdm/events{/privacy}","received_events_url":"https://api.github.com/users/manojtdm/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T17:45:19Z","updated_at":"2015-08-07T17:45:19Z","body":"@chrisguerra Hi Chris..Thank you..What is the right xpath I need to use in protractor?\r\nBecause I have tried with the xpath which is created using firbug.But it could not worked for me in my protractor code. html/body/div[1]/div/div[12]/div/div[1]/div this is the xpath I have tried in my application.\r\nThanks in advance.\r\n\r\n"}}