{"action":"created","issue":{"url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/5","repository_url":"https://api.github.com/repos/arnoudbuzing/webunit","labels_url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/5/comments","events_url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/5/events","html_url":"https://github.com/arnoudbuzing/webunit/issues/5","id":301039299,"number":5,"title":"Get specified HTML element","user":{"login":"wjxway","id":34795160,"avatar_url":"https://avatars1.githubusercontent.com/u/34795160?v=4","gravatar_id":"","url":"https://api.github.com/users/wjxway","html_url":"https://github.com/wjxway","followers_url":"https://api.github.com/users/wjxway/followers","following_url":"https://api.github.com/users/wjxway/following{/other_user}","gists_url":"https://api.github.com/users/wjxway/gists{/gist_id}","starred_url":"https://api.github.com/users/wjxway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjxway/subscriptions","organizations_url":"https://api.github.com/users/wjxway/orgs","repos_url":"https://api.github.com/users/wjxway/repos","events_url":"https://api.github.com/users/wjxway/events{/privacy}","received_events_url":"https://api.github.com/users/wjxway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-28T14:14:34Z","updated_at":"2018-03-01T08:25:20Z","closed_at":null,"author_association":"NONE","body":"It would be great if I can write something like:\r\n\r\n`GetPageHTML[Id[*******]]`\r\nor\r\n`GetPageHTML[XPath[*******]]`\r\n\r\nNow I'll have to do `StringCases[GetPageHTML[****],***]` which is kind of redundant and of low efficiency.\r\n\r\nAlso, WebUnit crash sometimes when opening webpage, returning the following info:\r\n`\"value\" /. ImportString[$Failed, \"JSON\"]`, and don't work afterward even if I change webpage manually.\r\nHow can I fix this?\r\n\r\nBTW: I **LOVE** WebUnit, It's so helpful when dealing with web stuffs, thanks a lot~ "},"comment":{"url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/comments/369513022","html_url":"https://github.com/arnoudbuzing/webunit/issues/5#issuecomment-369513022","issue_url":"https://api.github.com/repos/arnoudbuzing/webunit/issues/5","id":369513022,"user":{"login":"wjxway","id":34795160,"avatar_url":"https://avatars1.githubusercontent.com/u/34795160?v=4","gravatar_id":"","url":"https://api.github.com/users/wjxway","html_url":"https://github.com/wjxway","followers_url":"https://api.github.com/users/wjxway/followers","following_url":"https://api.github.com/users/wjxway/following{/other_user}","gists_url":"https://api.github.com/users/wjxway/gists{/gist_id}","starred_url":"https://api.github.com/users/wjxway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjxway/subscriptions","organizations_url":"https://api.github.com/users/wjxway/orgs","repos_url":"https://api.github.com/users/wjxway/repos","events_url":"https://api.github.com/users/wjxway/events{/privacy}","received_events_url":"https://api.github.com/users/wjxway/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T08:25:20Z","updated_at":"2018-03-01T08:25:20Z","author_association":"NONE","body":"Also, here's  a few frequently used functions when I'm using WebUnit:\r\n`GetPageURL[]:=JavascriptExecute[\"return window.location.href;\"]`\r\n`OffAlert[]:=JavascriptExecute[\r\n\"var alert1=alert;\r\nvar confirm1=confirm;\r\nvar prompt1=prompt;\r\nvar alert=function(){return 1};\r\nvar confirm=function(){return 1};\r\nvar prompt=function(){return 1};\"]`\r\n`OnAlert[]:=JavascriptExecute[\r\n \"var alert=alert1;\r\n var confirm=confirm1;\r\n var prompt=prompt1;\"]\r\n`"}}
{"actor":{"display_login":"wjxway"}}