Wait For Navigation fails: 'str' object has no attribute 'name'
See original GitHub issueDescribe the bug Promise to wait for navigation fails due to library error:
'str' object has no attribute 'name'
To Reproduce Steps to reproduce the behavior:
Click "${locator}" And Wait For Navigation To "${target}" Page Until "${event}"
${target_url} = Resolve Full Url ${target}
${page_navigation} = Promise To Wait For Navigation url=${target_url} wait_until=${event}
Click ${selector}
Wait For ${page_navigation}
wait_until has value load during test.
Expected behavior Promise to wait for navigation should be successful.
Traceback
Traceback (most recent call last):
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/playwright.py", line 149, in grpc_channel
yield playwright_pb2_grpc.PlaywrightStub(self._channel)
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/keywords/network.py", line 245, in wait_for_navigation
waitUntil=wait_until.name,
AttributeError: 'str' object has no attribute 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/browser.py", line 957, in run_keyword
raise e
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/browser.py", line 947, in run_keyword
return DynamicCore.run_keyword(self, name, args, kwargs)
File "/home/robot/testenv/lib/python3.10/site-packages/robotlibcore.py", line 94, in run_keyword
return self.keywords[name](*args, **(kwargs or {}))
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/keywords/promises.py", line 166, in wait_for
return promises[0].result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/keywords/network.py", line 238, in wait_for_navigation
with self.playwright.grpc_channel() as stub:
File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/robot/testenv/lib/python3.10/site-packages/Browser/playwright.py", line 156, in grpc_channel
raise AssertionError(str(error))
AssertionError: 'str' object has no attribute 'name'
Additional context
- Tested working until
robotframework-browser v12.1.0 - Tested breaking since
robotframework-browser v12.2.0
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[BUG] AttributeError: 'str' object has no attribute 'name ... - GitHub
Description. Between setuptools 60.9.0 and 60.9.1, a previously working project now encounters an error during the python setup.py egg_info ...
Read more >AttributeError: str has no attribute name - django python
the error below is coming when i try to call the save() method of image file. AttributeError: str has no attribute name. name...
Read more >AttributeError("'str' object has no attribute 'read'") - SyntaxFix
This error is caused when you tried to run a method within a string. String has a few methods, but not the one...
Read more >Ansible dict object has no attribute stdout (or) stderr
This error appears when you are trying to iterate through a list or dictionary incorrectly. In this post, we will discuss how to...
Read more >Selenium WebDriver Error AttributeError list object has no ...
The error is because your using driver.find_elements instead of driver.find_element. That's a syntactical mistake. Let me know if it solves it.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ealap PR 2105 fiexes the issue
Done in https://github.com/MarketSquare/robotframework-browser/commit/c0929586f984e136bd4acdd57c34318301a65cc8