MCPcopy Index your code
hub / github.com/AirtestProject/Poco / set_text

Method set_text

poco/proxy.py:791–802  ·  view source on GitHub ↗

Set the text attribute of the UI element. If the UI element does not support mutation, an exception is raised Args: text: the text value to be set Raises: InvalidOperationException: when unable to mutate text value of the UI element

(self, text)

Source from the content-addressed store, hash-verified

789 return text
790
791 def set_text(self, text):
792 """
793 Set the text attribute of the UI element. If the UI element does not support mutation, an exception is raised
794
795 Args:
796 text: the text value to be set
797
798 Raises:
799 InvalidOperationException: when unable to mutate text value of the UI element
800 """
801
802 return self.setattr('text', text)
803
804 def get_name(self):
805 """

Callers 3

runTestMethod · 0.80
test_set_textMethod · 0.80
test_clear_textMethod · 0.80

Calls 1

setattrMethod · 0.95

Tested by 2

test_set_textMethod · 0.64
test_clear_textMethod · 0.64