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

Not able to perform browser action on input field using proximity selectors #552

Closed
Debashis9012 opened this issue May 17, 2019 · 2 comments
Assignees
Labels

Comments

@Debashis9012
Copy link
Contributor

Expected behavior

Should be focused on the text field which is below the label "First name:"

Actual behavior

✘ Error: Input Field Below First name: not found, run .trace for more info.

Steps to reproduce

  1. openBrowser()
  2. goto("https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit")
  3. focus(inputField(below('First name:')))
    Note:
    The above steps works fine with the below html code snippet
    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">
</form>

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

</body>
</html>

Versions

commit: d9e89e2
Version: 0.8.0 (Chromium: 74.0.3723.0)
@negiDharmendra negiDharmendra self-assigned this May 23, 2019
negiDharmendra added a commit that referenced this issue May 27, 2019
…c_context

#552 #554 Fetch element from all exection contexts
@NivedhaSenthil
Copy link
Member

Fix available in f6e741f

@Debashis9012
Copy link
Contributor Author

This issue has been verified and found fixed with the commit version a622aa5c84bc8544ef3e3028ae73afcb55a96b1b

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

3 participants