Skip to content Skip to sidebar Skip to footer

Python Robot Framework Pass Arguments To A Function

I try to use this method def my_click(self, locator, info='click on button error', timeout=5): element = self.wait_for_visibility(locator, info, timeout) element.click()

Solution 1:

Why my click argument is in brackets? It should be without brackets and comma. Something like:

my click    By.PARTIAL_LINK_TEXT    register

Please ensure that there are 3-4 spaces between the function and the variables and each variable.

Post a Comment for "Python Robot Framework Pass Arguments To A Function"