|
|
|
@ -177,7 +177,7 @@ def UIOSelectorList(inUIOSelectorStr, inUIO=None) -> list:
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIOList = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
lUIOList = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI объекта на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -212,7 +212,7 @@ def UIOSelectorFirst(inUIOSelectorStr, inUIO=None) -> list:
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorFirst(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
lUIO = UIWeb.UIOSelectorFirst(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI объекта на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -237,7 +237,7 @@ def UIOTextGet(inUIO) -> str:
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lTextStr = UIWeb.UIOTextGet(inUIO=lUIO)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -258,7 +258,7 @@ def UIOAttributeGet(inUIO, inAttributeStr) -> str:
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeGet(inUIO=lUIO, inAttributeStr = "href")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -281,7 +281,7 @@ def UIOAttributeStyleGet(inUIO, inAttributeStr) -> str:
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeStyleGet(inUIO=lUIO, inAttributeStr = "href")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -304,7 +304,7 @@ def UIOAttributeSet(inUIO, inAttributeStr, inValue):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeSet(inUIO=lUIO, inAttributeStr = "href", inValue = "https://mail.ru")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -329,7 +329,7 @@ def UIOAttributeRemove(inUIO, inAttributeStr):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeRemove(lUIO, "href")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -352,7 +352,7 @@ def UIOAttributeStyleSet(inUIO, inAttributeStr, inValue):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeStyleSet(inUIO=lUIO, inAttributeStr = "color", inValue = "grey")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -377,7 +377,7 @@ def UIOAttributeStyleRemove(inUIO, inAttributeStr:str):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIWeb.UIOAttributeStyleRemove(lUIO, "color")
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -400,7 +400,7 @@ def UIOClick(inUIO):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lUIO = UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
lUIO = UIWeb.UIOSelectorList(inUIOSelectorStr = lUIOSelectorStr)[0]
|
|
|
|
|
UIOClick(inUIO = lUIO)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
@ -419,7 +419,7 @@ def UIOSelectorHighlight(inUIOSelectorStr: str, inIsFirst:bool=False, inDuration
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
UIOSelectorHighlight(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.UIOSelectorHighlight(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI элемента на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -475,7 +475,7 @@ def UIOSelectorClick(inUIOSelectorStr: str):
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
UIOSelectorClick(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.UIOSelectorClick(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI элемента на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -493,7 +493,7 @@ def UIOSelectorWaitAppear(inUIOSelectorStr:str, inWaitSecFloat:float=UIO_WAIT_SE
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lAppearUIOList = UIOSelectorWaitAppear(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
lAppearUIOList = UIWeb.UIOSelectorWaitAppear(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI элемента на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -525,7 +525,7 @@ def UIOSelectorWaitDisappear(inUIOSelectorStr:str, inWaitSecFloat:float=UIO_WAIT
|
|
|
|
|
UIWeb.BrowserChromeStart()
|
|
|
|
|
UIWeb.PageOpen("https://mail.ru")
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
UIOSelectorWaitDisappear(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.UIOSelectorWaitDisappear(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
UIWeb.BrowserClose()
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI элемента на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
@ -557,7 +557,7 @@ def UIOSelectorDetect(inUIOSelectorStr:str) -> str:
|
|
|
|
|
from pyOpenRPA.Robot import UIWeb
|
|
|
|
|
lUIOSelectorStr = "#grid > div.grid-middle > div.grid__main-col.svelte-2y66pa > div.grid_newscol.grid_newscol__more-pulse.svelte-1yvqfic > div.grid__ccol.svelte-1yvqfic > ul > li:nth-child(5) > div > a"
|
|
|
|
|
lUIOSelectorStr = "//*[@id=\"grid\"]/div[2]/div[2]/div[3]/div[1]/ul/li[5]/div/a"
|
|
|
|
|
lResultStr = UIOSelectorDetect(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
lResultStr = UIWeb.UIOSelectorDetect(inUIOSelectorStr = lUIOSelectorStr)
|
|
|
|
|
|
|
|
|
|
:param inUIOSelectorStr: XPATH или CSS селектор UI объекта на web странице. Подсказки по CSS: https://devhints.io/css Подсказки по XPath: https://devhints.io/xpath
|
|
|
|
|
:type inUIOSelectorStr: str
|
|
|
|
|