Keyword `Input Password` throws an exception when run with Python (no robotframework)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu trong SeleniumLibrary/keywords/formelement.py tại input_password và _input_text_into_text_field, các điểm vào được hiển thị trong traceback. Tái hiện lệnh gọi bên ngoài Robot Framework, sau đó kiểm tra các bài kiểm thử keyword phần tử biểu mẫu hiện có. Hoàn tất khi Input Password hoạt động cả khi có và khi không có ngữ cảnh thực thi Robot Framework, với kiểm thử hồi quy cho lỗi đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
For issues
Steps to reproduce the issue
from SeleniumLibrary import SeleniumLibrary
from time import sleep
library = SeleniumLibrary()
def minimal_task():
try:
library.open_browser('https://docs.robocorp.com')
library.input_password("//input[@aria-label='Search']", "playwright")
sleep(5)
finally:
library.close_all_browsers()
print("Done.")
if __name__ == "__main__":
minimal_task()
Error messages and additional information
Traceback (most recent call last):
File "task.py", line 23, in <module>
minimal_task()
File "task.py", line 15, in minimal_task
library.input_password("//input[@aria-label='Search']", "playwright")
File "C:\Users\User\AppData\Local\robocorp\live\199e494e4c733ef3\lib\site-packages\SeleniumLibrary\keywords\formelement.py", line 269, in input_password
self._input_text_into_text_field(locator, password, clear, disable_log=True)
File "C:\Users\User\AppData\Local\robocorp\live\199e494e4c733ef3\lib\site-packages\SeleniumLibrary\keywords\formelement.py", line 509, in _input_text_into_text_field
previous_level = BuiltIn().set_log_level("NONE")
File "C:\Users\User\AppData\Local\robocorp\live\199e494e4c733ef3\lib\site-packages\robot\libraries\BuiltIn.py", line 3006, in set_log_level
old = self._context.output.set_log_level(level)
File "C:\Users\User\AppData\Local\robocorp\live\199e494e4c733ef3\lib\site-packages\robot\libraries\BuiltIn.py", line 64, in _context
return self._get_context()
File "C:\Users\User\AppData\Local\robocorp\live\199e494e4c733ef3\lib\site-packages\robot\libraries\BuiltIn.py", line 69, in _get_context
raise RobotNotRunningError('Cannot access execution context')
robot.libraries.BuiltIn.RobotNotRunningError: Cannot access execution context
Expected behavior and actual behavior
Keyword Input Password works with and without Robot Framework
Environment
Browser: default by Open Browser keyword
Browser driver: Gecko
Operating System: Windows 10
Libraries
- Robot Framework: NOT USED
- Selenium: 3.141.0
- SeleniumLibrary: robotframework-seleniumlibrary==5.1.3
- Interpreter: Python 3.7.5 | packaged by conda-forge | (default, Jan 28 2021, 18:15:34) [MSC v.1916 64 bit (AMD64)] on win32
- Ngôn ngữ chính
- Python
- Star
- 1.5k
- Fork
- 787
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của robotframework/SeleniumLibrary
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
robotframework/SeleniumLibrary#1941 · 3 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
robotframework/SeleniumLibrary#1833 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
robotframework/SeleniumLibrary#1436 · 5 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
robotframework/SeleniumLibrary#1993 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
robotframework/SeleniumLibrary#1992 · 4 bình luận ·
Tất cả issue của robotframework/SeleniumLibrary
Issue tương tự
-
agent-ready documentation needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Add https://search.jeremyh.xyz/ Đang mởinstance instance add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
searxng/searx-instances#939 · 1 bình luận ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100