Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taiko repl stucks #971

Closed
Debashis9012 opened this issue Dec 16, 2019 · 2 comments
Closed

taiko repl stucks #971

Debashis9012 opened this issue Dec 16, 2019 · 2 comments
Assignees
Labels

Comments

@Debashis9012
Copy link
Contributor

Expected behavior

Taiko repl should not get stuck.

Actual behavior

repl gets stuck after closing browser.

Steps to reproduce

  1. install taiko 395170f7fcbebc20ee3e722389cefde023bd23e1
  2. Run the below script agaist the html page:
    script
const { openBrowser, goto, click ,closeBrowser } = require('taiko');
(async () => {
    try {
        await openBrowser({headless: true});
        await goto("file:///Users/Desktop/eleWrapper.html");
        let a =   button("Hello");
        click(a);
    } catch (error) {
        console.error(error);
    } finally {
        await closeBrowser();
    }
})();

html snippet

<!DOCTYPE html>
<html>
<body>

<h2>HTML Forms</h2>

<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Mouse">
  <br><br>
  <input type="submit" value="Submit">
   <input type="submit" value="Hello">


</form>

<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Mouse">
  <br><br>
  <input type="submit" value="Submit">
   <input type="submit" value="Hello">


</form>

<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Mouse">
  <br><br>
  <input type="submit" value="Submit">
   <input type="submit" value="Hello">
  

</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called "/action_page.php".</p>

</body>
</html>

Kindly find the below screenshot of console output.

Screen Shot 2019-12-16 at 12 25 55 PM

Versions

Version: 1.0.3 (Chromium: 79.0.3945.16) 395170f7fcbebc20ee3e722389cefde023bd23e1
@negiDharmendra negiDharmendra self-assigned this Dec 17, 2019
@negiDharmendra
Copy link
Contributor

Works fine on master.

@Debashis9012
Copy link
Contributor Author

Tested with the same steps it works fine in the master.
Tested version: b9cbccc6fdaedeee91b2adcd92c94c6c5f8ec600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants