question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select Options By Keyword throws TimeoutError: locator.elementHandle

See original GitHub issue

Describe the bug I am using robotframwork-browser 11.1.0. When running the following code, robot throws an error even though I can see the UI choosing the right option from dropdown.

Select Options By select[id="shortcutsSimpleSelect"] text 1w

image ` To Reproduce Steps to reproduce the behavior: Consider a dropdown element as : image (12)

The testcode needs to select 1w from the dropdown. Select Options By select[id="shortcutsSimpleSelect"] text 1w

During runtime, I can see the UI selecting the correct option from the dropdown. But the robot still fails at the step with image`

Expected behavior I expect the robot to select the correct option from the UI and pass. Same testcode used to pass for Browser library 3.2

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chromium
  • Version: Version 98.0.4695.0 (Developer Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Snooz82commented, Dec 16, 2021

actually i think the locator that is build by playwright is wrong! it should not search for value when using label

0reactions
Snooz82commented, Feb 19, 2022

@aaltat But Value and Text are different things!

label and text is same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Locator | Playwright - CukeTest
Locator represents a view to the element(s) on the page. It captures the logic sufficient to retrieve the element at any given moment....
Read more >
[BUG] Selecting option in dropdown via regular click function ...
[BUG] Selecting option in dropdown via regular click function with text - solves element as invisible and triggers test failure #14172.
Read more >
ElementHandle.select() method - Puppeteer
Triggers a change and input event once all the provided options have been selected. If there's no ` element matching selector`, the method...
Read more >
Playwright.Locator — playwright v0.1.17-preview-3 - HexDocs
Locators are strict. This means that all operations on locators that imply some target DOM element will throw if more than one element...
Read more >
Browser - MarketSquare
This is the keyword documentation for Browser library. ... possible to mix XPath, CSS and Text selectors while selecting a single element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found