SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Typing issues when using SeleniumLibrary directly from python.

Open rasjani opened this issue 3 years ago • 1 comments

select_from_list_by_index expects the index to be <str> .. calling from RF side, this is not an issue but doesnt make sense when called from python ..

create_webdriver also returns <str> but register_webdriver then returns <int>

Action:

Go thru the type annotations that refer to index and allow passing of <int> instead of only <str>

PS. Typically RF itself doesnt get issues with this sort of type annotations - issue is mainly now apparent because plenty of Robocorp customers are making "pure python robots".

rasjani avatar Oct 07 '22 09:10 rasjani

If someone can spot other similar issues - please share ?

rasjani avatar Oct 07 '22 09:10 rasjani