Advertisement
ssdnet

Untitled

Feb 26th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. def Init(ua:str=''):
  2. def DeInit():
  3.  
  4. def GetPage(url:str)->str:
  5.  
  6. def ClickElement_ByLinkText(linktext:str, timeout=5,waitwhenfound=0)->str:
  7. def ClickElement_ByPartialLinkText(linktext:str, timeout=5, waitwhenfound=0)->str:
  8. def ClickElement_ByXPATH(xpath:str, timeout=5, waitwhenfound=0)->str:
  9. def ClickElement_ByCSSSelector(selector:str, timeout=5, waitwhenfound=0)->str:
  10. def ClickElement_ByClassName(cname:str, timeout=5, waitwhenfound=0)->str:
  11. def ClickElement_ByID(id:str, timeout=5, waitwhenfound=0)->str:
  12. def ClickElement_ByName(name:str, timeout=5, waitwhenfound=0)->str:
  13.  
  14. def SendKeysElement_ByXPATH(xpath:str, text:str, timeout=5, waitwhenfound=0)->str:
  15. def SendKeysElement_ByCSSSelector(selector:str, text:str, timeout=5, waitwhenfound=0)->str:
  16. def SendKeysElement_ByClassName(cname:str, text:str, timeout=5, waitwhenfound=0)->str:
  17. def SendKeysElement_ByID(id:str, text:str, timeout=5, waitwhenfound=0)->str:
  18. def SendKeysElement_ByName(name:str, text:str, timeout=5, waitwhenfound=0)->str:
  19.  
  20. def GetElementText_ByXPATH(xpath:str, timeout=5, waitwhenfound=0)->str:
  21. def GetElementText_ByCSSSelector(selector:str, timeout=5, waitwhenfound=0)->str:
  22. def GetElementText_ByClassName(cname:str, timeout=5, waitwhenfound=0)->str:
  23. def GetElementText_ByLinkText(text:str, timeout=5, waitwhenfound=0)->str:
  24. def GetElementText_ByPartialLinkText(text:str, timeout=5, waitwhenfound=0)->str:
  25. def GetElementText_ByID(id:str, timeout=5, waitwhenfound=0)->str:
  26. def GetElementText_ByName(name:str, timeout=5, waitwhenfound=0)->str:
  27.  
  28. def GetImage_ByXPATH(xpath:str, timeout=5, waitwhenfound=0)->list:
  29. def GetImage_ByCSSSelector(selector:str, timeout=5, waitwhenfound=0)->list:
  30. def GetImage_ByClassName(cname:str, timeout=5, waitwhenfound=0)->list:
  31. def GetImage_ByID(id:str, timeout=5, waitwhenfound=0)->list:
  32. def GetImage_ByName(name:str, timeout=5, waitwhenfound=0)->list:
  33.  
  34. def WaitForElement_ByClassName(waitfor:str,timeout=5, waitwhenfound=0)->str:
  35. def WaitForElement_ByCssSelector(selector:str,timeout=5, waitwhenfound=0)->str:
  36. def WaitForElement_ByXPATH(xpath:str,timeout=5, waitwhenfound=0)->str:
  37. def WaitForElement_ByID(id:str,timeout=5, waitwhenfound=0)->str:
  38. def WaitForElement_ByName(name:str,timeout=5, waitwhenfound=0)->str:
  39.  
  40. def GetHtml()->str:
  41.  
  42. def Browser_PreviousPage():
  43. def Browser_NextPage():
  44. def Browser_Refresh():
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement