updated function for checking current tab url
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
; -------------------------------Tab Navigation & Activation-------------------------------
|
; -------------------------------Tab Navigation & Activation-------------------------------
|
||||||
CheckCurrentTabForCurrentSite(){
|
CheckCurrentTabForCurrentSite(){
|
||||||
try CurrentTabURL := driver.url
|
try CurrentTabURL := GetCurrentTabURlBase()
|
||||||
|
|
||||||
if(!InStr(CurrentTabURL, CurrentSite)){
|
if(!InStr(CurrentTabURL, CurrentSite)){
|
||||||
Message = Chromedriver failed to switch to %CurrentSite%. Please see errorlog for website it got stuck on.
|
Message = Chromedriver failed to switch to %CurrentSite%. Current Tab URL: %CurrentTabURL%
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||||
return "Failed"
|
return "Failed"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user