Forum Discussion

MarkSchofer's avatar
MarkSchofer
Frequent Contributor
4 years ago

FireFox not working on a simple Search

This script works everywhere except in the FireFox Browser..........

 

Version: 14.90.432.7 x64 -Purposely on this version for now

 

def FindTPA():
# display log messages in bold green letters
attr = Log.CreateNewAttributes()
attr.FontColor = clGreen
attr.Bold = True

if Sys.WaitBrowser().Exists:
#Browsers.Item[btIExplorer].Navigate("http://qat3.q.pers.state.or.us/Clarety/SAMyClarety.do");
browser = Aliases.browser
# else:
# Log.Message("No browser is open")
# newEmplr().quit() #exit()

#page = browser.pageMyclaretyPage
page = browser.Page("*")

#page.tableTop.cell.formUnitform.linkMyClarety.Click()
PropArray = ["ObjectType","ObjectLabel"]
ValuesArray = ["Link","View/Manage Healthcare Deductions"];
page.FindChild(PropArray, ValuesArray, 10).click()
page.Wait()
myTPA = page.FindChild(PropArray, ValuesArray,10)
if (myTPA.exists):
Log.Message("Ready To Begin")

  • You might want to keep your license info private.   

     

    What version of Firefox are you using? 

    Which part of the script is failing?

    Do you get an error message?

    • MarkSchofer's avatar
      MarkSchofer
      Frequent Contributor

      Thanks for the reminder. This is an opening script to a longer program.  It is the code I have posted. Very simple search for a link.

      I understand FF puts out a new version constantly. 

       

      FireFox 92.0.1 #page = browser.pageMyclaretyPage
      page = browser.Page("*")