{"action":"created","issue":{"url":"https://api.github.com/repos/atata-framework/atata/issues/38","repository_url":"https://api.github.com/repos/atata-framework/atata","labels_url":"https://api.github.com/repos/atata-framework/atata/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/atata-framework/atata/issues/38/comments","events_url":"https://api.github.com/repos/atata-framework/atata/issues/38/events","html_url":"https://github.com/atata-framework/atata/issues/38","id":235475203,"number":38,"title":"Resolve an element without attribute","user":{"login":"wmolyneux","id":6518457,"avatar_url":"https://avatars1.githubusercontent.com/u/6518457?v=3","gravatar_id":"","url":"https://api.github.com/users/wmolyneux","html_url":"https://github.com/wmolyneux","followers_url":"https://api.github.com/users/wmolyneux/followers","following_url":"https://api.github.com/users/wmolyneux/following{/other_user}","gists_url":"https://api.github.com/users/wmolyneux/gists{/gist_id}","starred_url":"https://api.github.com/users/wmolyneux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmolyneux/subscriptions","organizations_url":"https://api.github.com/users/wmolyneux/orgs","repos_url":"https://api.github.com/users/wmolyneux/repos","events_url":"https://api.github.com/users/wmolyneux/events{/privacy}","received_events_url":"https://api.github.com/users/wmolyneux/received_events","type":"User","site_admin":false},"labels":[{"id":310787824,"url":"https://api.github.com/repos/atata-framework/atata/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-13T08:30:12Z","updated_at":"2017-06-13T16:07:50Z","closed_at":"2017-06-13T15:34:52Z","body":"Given a table with three columns (Time, Id, Message) I have created a Table inside my page object model which contains the TableHeaders and the TableRows to locate these static columns in my table.\r\n\r\nI then had an issue where if the columns were to appear in a different order than I would use the FindByXPath attribute on the TableRow to look at the index of the column that ID occurs in use that index whilst locating the cell for ID in the table row.\r\n\r\nHowever my table has the option to add extra columns based on user data in the system. There is not a way to know what the user data is and therefore I was planning to add a function onto the TableRow for retrieving the custom property by name. Then the function can use the same XPath as above to take the string property name and look for a header matching that property name, and then use the index of the header to find which cell in the row contains the value for that data.\r\n\r\nIs there a way to resolve elements not using attributes?\r\n\r\nI have tried using AtataContext.Current.Driver.FindElementByXPath however this returns an IWebElement instead of a the desired Text<_> object and I cannot seem to cast or create one,\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/atata-framework/atata/issues/comments/308167273","html_url":"https://github.com/atata-framework/atata/issues/38#issuecomment-308167273","issue_url":"https://api.github.com/repos/atata-framework/atata/issues/38","id":308167273,"user":{"login":"YevgeniyShunevych","id":10154945,"avatar_url":"https://avatars2.githubusercontent.com/u/10154945?v=3","gravatar_id":"","url":"https://api.github.com/users/YevgeniyShunevych","html_url":"https://github.com/YevgeniyShunevych","followers_url":"https://api.github.com/users/YevgeniyShunevych/followers","following_url":"https://api.github.com/users/YevgeniyShunevych/following{/other_user}","gists_url":"https://api.github.com/users/YevgeniyShunevych/gists{/gist_id}","starred_url":"https://api.github.com/users/YevgeniyShunevych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YevgeniyShunevych/subscriptions","organizations_url":"https://api.github.com/users/YevgeniyShunevych/orgs","repos_url":"https://api.github.com/users/YevgeniyShunevych/repos","events_url":"https://api.github.com/users/YevgeniyShunevych/events{/privacy}","received_events_url":"https://api.github.com/users/YevgeniyShunevych/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T16:07:50Z","updated_at":"2017-06-13T16:07:50Z","body":"No problem. Sure, try different complex scenarios. Post questions/issues if you will have some. I periodically  add features and enhancements for the parts of framework where there is a gap."}}
{"actor":{"display_login":"YevgeniyShunevych"}}