{"action":"created","issue":{"url":"https://api.github.com/repos/getgauge/taiko/issues/169","repository_url":"https://api.github.com/repos/getgauge/taiko","labels_url":"https://api.github.com/repos/getgauge/taiko/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/getgauge/taiko/issues/169/comments","events_url":"https://api.github.com/repos/getgauge/taiko/issues/169/events","html_url":"https://github.com/getgauge/taiko/issues/169","id":361572304,"node_id":"MDU6SXNzdWUzNjE1NzIzMDQ=","number":169,"title":"If I am able to goto(<URL>) I must be able to close/switch tab with the <URL>","user":{"login":"sguptatw","id":6310197,"node_id":"MDQ6VXNlcjYzMTAxOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6310197?v=4","gravatar_id":"","url":"https://api.github.com/users/sguptatw","html_url":"https://github.com/sguptatw","followers_url":"https://api.github.com/users/sguptatw/followers","following_url":"https://api.github.com/users/sguptatw/following{/other_user}","gists_url":"https://api.github.com/users/sguptatw/gists{/gist_id}","starred_url":"https://api.github.com/users/sguptatw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sguptatw/subscriptions","organizations_url":"https://api.github.com/users/sguptatw/orgs","repos_url":"https://api.github.com/users/sguptatw/repos","events_url":"https://api.github.com/users/sguptatw/events{/privacy}","received_events_url":"https://api.github.com/users/sguptatw/received_events","type":"User","site_admin":false},"labels":[{"id":1018186048,"node_id":"MDU6TGFiZWwxMDE4MTg2MDQ4","url":"https://api.github.com/repos/getgauge/taiko/labels/triage","name":"triage","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-19T04:18:28Z","updated_at":"2018-09-19T09:35:41Z","closed_at":null,"author_association":"NONE","body":"**Expected behavior**\nIf I am able to goto(<URL>) I must be able to close/switch tab with the <URL>\n\n**Actual behavior**\nGetting `No target with given URL/Title found.`\n\n**Steps to replicate**\n* Run the following script\n```\nconst { openBrowser, goto, inputField, into, write, toRightOf, comboBox, click,\n    openTab,closeTab } = require('taiko');\n\n(async () => {\n    try {\n        await openBrowser({headless:false});\n        await goto(\"makemytrip.com/\")\n        await openTab(\"gauge.org/index.html\")\n        await closeTab(\"makemytrip.com/\")\n        await closeTab(\"gauge.org/index.html\")\n    } catch (e) {\n        console.error(e);\n    } finally {\n        closeBrowser();\n    }\n})();\n```\n> The makemytrip URL after opening is `https://www.makemytrip.com/`. The URL given for open was makemytrip.com The user should be able to close/switch tab with that\n\n**Version**\n```\ncommit - 0daea61fbeb29bcb78148721b95d98fec66d753d\n```\nBlocks #108"},"comment":{"url":"https://api.github.com/repos/getgauge/taiko/issues/comments/422728660","html_url":"https://github.com/getgauge/taiko/issues/169#issuecomment-422728660","issue_url":"https://api.github.com/repos/getgauge/taiko/issues/169","id":422728660,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjcyODY2MA==","user":{"login":"nehashri","id":5715387,"node_id":"MDQ6VXNlcjU3MTUzODc=","avatar_url":"https://avatars3.githubusercontent.com/u/5715387?v=4","gravatar_id":"","url":"https://api.github.com/users/nehashri","html_url":"https://github.com/nehashri","followers_url":"https://api.github.com/users/nehashri/followers","following_url":"https://api.github.com/users/nehashri/following{/other_user}","gists_url":"https://api.github.com/users/nehashri/gists{/gist_id}","starred_url":"https://api.github.com/users/nehashri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehashri/subscriptions","organizations_url":"https://api.github.com/users/nehashri/orgs","repos_url":"https://api.github.com/users/nehashri/repos","events_url":"https://api.github.com/users/nehashri/events{/privacy}","received_events_url":"https://api.github.com/users/nehashri/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T09:35:41Z","updated_at":"2018-09-19T09:35:41Z","author_association":"MEMBER","body":"Does this mean that taiko keeps a tab of all the redirects that have happened so that we can call closetab with the original url?"}}
{"actor":{"display_login":"nehashri"}}