580812942ea6dcf06d1cff08b4e3603b6facc638
gperez2
  Wed May 29 12:35:39 2024 -0700
Copied Brian's session and saved it to the QAtester session account. Copied Brian's links and Gerardo's links to the genecats directory. Changed the links for the script. No redmine

diff --git src/utils/qa/qaTestScript.py src/utils/qa/qaTestScript.py
index 1242c4c..2c4631c 100755
--- src/utils/qa/qaTestScript.py
+++ src/utils/qa/qaTestScript.py
@@ -174,56 +174,56 @@
 # identify element
 m = driver.find_element_by_id("tools3") 
 # hover over element
 a.move_to_element(m).perform()
 # identify sub menu element
 n = driver.find_element_by_id("tableBrowserMenuLink")
 # hover over element and click
 a.move_to_element(n).click().perform()
 driver.find_element_by_id("hgta_doSchema").click()
 driver.find_element_by_xpath("//div[@id='firstSection']/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/a").click() #schema page check
 driver.get(machine + "/cgi-bin/hgTables?db=oviAri4")
 driver.find_element_by_name("hgta_doSummaryStats").click()
 
 # Tests a session with custom tracks, multiRegion, and assembly hub
 cartReset()
-driver.get(machine + "/cgi-bin/hgTracks?hgS_doOtherUser=submit&hgS_otherUserName=brianlee&hgS_otherUserSessionName=Custom_Tracks_AssemblyHub_MultiRegion_TrackCollection_BigWigs")
+driver.get(machine + "/cgi-bin/hgTracks?hgS_doOtherUser=submit&hgS_otherUserName=QAtester&hgS_otherUserSessionName=Custom_Tracks_AssemblyHub_MultiRegion_TrackCollection_BigWigs")
 driver.find_element_by_xpath("//td[@id='td_data_ct_UserTrack_3545']/div[2]/map/area[4]").click()
 driver.find_element_by_link_text("chr1:33719895-33742564").click()
 
 # Tests a DNA search on hgTracks
 cartReset()
 driver.get(machine + "/cgi-bin/hgTracks?db=hg38&hideTracks=1")
 driver.get(machine + "/cgi-bin/hgTracks")
 driver.find_element_by_id("positionInput").clear()
 driver.find_element_by_id("positionInput").send_keys("GTATGTAGCCACGGAGCACCATTACCTGTCACCATTACCTGAATGGCTA")
 driver.find_element_by_name("goButton").click()
 driver.find_element_by_xpath("//a[contains(text(),'browser')]").click()
 
 # Tests custom tracks on hg19
 driver.get(machine + "/cgi-bin/hgGateway?db=hg19")
 a = ActionChains(driver)
 #identify element
 m = driver.find_element_by_id("myData")
 ##hover over element
 a.move_to_element(m).perform()
 #identify sub menu element
 n = driver.find_element_by_id("customTracksMenuLink")
 # hover over element and click
 a.move_to_element(n).click().perform()
 driver.find_element_by_name("hgct_customText").clear()
-driver.find_element_by_name("hgct_customText").send_keys("https://hgwdev-gperez2.gi.ucsc.edu/~gperez2/testing/hgCustom_testing/examples.WITHOUT.FTPS.txt")
+driver.find_element_by_name("hgct_customText").send_keys("https://genecats.gi.ucsc.edu/qa/customTracks/testing/examples.WITHOUT.FTPS.txt")
 driver.find_element_by_name("Submit").click()
 driver.find_element_by_name("submit").click()
 driver.find_element_by_id("p_btn_ct_hicExampleTWO_9382").click()
 driver.find_element_by_name("ct_hicExampleTWO_9382.color").click()
 # Tests hgCollection with custom tracks
 a = ActionChains(driver)
 #identify element
 m = driver.find_element_by_id("myData")
 ##hover over element
 a.move_to_element(m).perform()
 #identify sub menu element
 n = driver.find_element_by_id("customCompositeMenuLink")
 # hover over element and click
 a.move_to_element(n).click().perform()
 driver.find_element_by_xpath("(.//*[normalize-space(text()) and normalize-space(.)='Collected Tracks'])[1]/following::div[2]").click()
@@ -238,31 +238,31 @@
 time.sleep(5)
 
 # Tests small custom track to click into hgTrackUi
 cartReset()
 driver.get(machine + "/cgi-bin/hgGateway?db=hg19")
 a = ActionChains(driver)
 #identify element
 m = driver.find_element_by_id("myData")
 ##hover over element
 a.move_to_element(m).perform()
 #identify sub menu element
 n = driver.find_element_by_id("customTracksMenuLink")
 # hover over element and click
 a.move_to_element(n).click().perform()
 driver.find_element_by_name("hgct_customText").clear()
-driver.find_element_by_name("hgct_customText").send_keys("https://hgwdev.gi.ucsc.edu/~brianlee/examples/customTracks/newTypes.txt")
+driver.find_element_by_name("hgct_customText").send_keys("https://genecats.gi.ucsc.edu/qa/customTracks/testing/newTypes.txt")
 driver.find_element_by_name("Submit").click()
 driver.find_element_by_name("submit").click()
 #if 'barChart Example One' in driver.page_source:
 #    print("Add Custom Tracks")
 
 # click into hgTrackUi of customTrack
 driver.find_element_by_xpath("//td[@id='td_data_ct_barChartExampleOne_4976']/div[2]/map/area[29]").click()
 driver.find_element_by_xpath("//div[@id='firstSection']/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/p[2]/a").click()
 driver.find_element_by_xpath("//a[contains(text(),'Data schema/format description and download')]")
 driver.get(machine + "/cgi-bin/hgTracks")
 driver.find_element_by_xpath("//td[@id='td_data_ct_interactExample_4634']/div[2]/map/area[5]").click()
 driver.find_element_by_xpath("//div[@id='firstSection']/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/p[2]/a").click()
 driver.find_element_by_xpath("//a[contains(text(),'Data schema/format description and download')]")
 
 ## Tests chromAlias hg38 custom track
@@ -539,41 +539,43 @@
 driver.get(machine + "/cgi-bin/hgTracks")
 time.sleep(3)
 driver.find_element_by_id("positionInput").clear()
 driver.find_element_by_id("positionInput").send_keys("scaffold_3:1,888,907-1,888,948")
 driver.find_element_by_id("goButton").click()
 time.sleep(3)
 # Tests track hub annotation if it is on the RR  
 if 'hub_129603_daph scaffold_3' in driver.page_source:
      driver.find_element_by_xpath("//td[@id='td_data_hub_129603_myTrack']/div[2]/map/area").click()
 else:
      driver.find_element_by_xpath("//td[@id='td_data_hub_6872_myTrack']/div[2]/map/area").click() 
 
 
 # Tests Mega Hub US 
 cartReset()
-driver.get(machine + "/cgi-bin/hgTracks?db=hg19&measureTiming=1&hubUrl=https://hgwdev.gi.ucsc.edu/~brianlee/hubTesting/manyMulitWigsENCODE/hub.txt")
+driver.get(machine + "/cgi-bin/hgTracks?db=hg19&measureTiming=1&hubUrl=https://genecats.gi.ucsc.edu/qa/hubTesting/exampleHubManyMulit/hub.txt")
 driver.get(machine + "/cgi-bin/hgTracks")
 driver.find_element_by_id("positionInput").clear()
 driver.find_element_by_id("positionInput").send_keys("chr10:69,644,427-69,678,147")
 driver.find_element_by_id("goButton").click()
 time.sleep(3)
 # Tests track hub annotation if it is on the RR   
-if 'hub_336627' in driver.page_source:
-     driver.find_element_by_xpath("//td[@id='td_data_hub_336627_multiWig4']/div[2]/map/area").click()
+if 'hub_5137468' in driver.page_source:
+     driver.find_element_by_xpath("//td[@id='td_data_hub_5137468_multiWig4']/div[2]/map/area").click()
+elif 'hub_24302' in driver.page_source:
+    driver.find_element_by_xpath("//td[@id='td_data_hub_24302_multiWig4']/div[2]/map/area").click()
 else:
-     driver.find_element_by_xpath("//td[@id='td_data_hub_9717_multiWig4']/div[2]/map/area").click()
+     driver.find_element_by_xpath("//td[@id='td_data_hub_37972_multiWig4']/div[2]/map/area").click()
 
 
 # Tests hgBlat All and Monk Seal/Human MYLK Protein
 cartReset()
 driver.get(machine + "/cgi-bin/hgGateway?db=hg19")
 a = ActionChains(driver)
 #identify element
 m = driver.find_element_by_id("tools3")
 #hover over element
 a.move_to_element(m).perform()
 #identify sub menu element
 n = driver.find_element_by_id("blatMenuLink")
 # hover over element and click
 a.move_to_element(n).click().perform()
 driver.find_element_by_id("searchAllText").click()