aboutsummaryrefslogtreecommitdiff
path: root/webtests/show_trait_js_test.py
blob: 5e8b72bf8179b9e77f5f02d1458eb15220e6298e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Test if JS is working on the show trait page

>>> test.get("alexandria.uthsc.edu:89")
title: GeneNetwork

Choose the species
>>> test.click_option('''//*[@id="species"]''', 'Human')

Choose the group
>>> test.click_option('''//*[@id="cross"]''', 'Human Brain Transcriptome (Yale/Kavli)')

Choose the type
>>> test.click_option('''//*[@id="tissue"]''', 'Orbital Prefrontal Cortex mRNA')

Enter the Get Any
>>> test.enter_text('''//*[@id="tfor"]''', 'ssh')
text: shh

Search
>>> test.click('//*[@id="btsearch"]')
clicked: Search

Choose the first result
>>> test.click('''//*[@id="KIN_YSM_OFC_0711::3081205"]/td[2]/a''')
clicked: 3081205

A new window is created, so we switch to it
>>> test.switch_window()
title: KIN/YSM Human OFC Affy Hu-Exon 1.0 ST (Jul11) Quantile : 3081205: Display Trait



"""

from __future__ import absolute_import, division, print_function

from browser_test import *

testmod()