6 use File::Spec::Functions qw / catfile catdir/;
8 use SGN::Test::WWW::WebDriver;
9 use SGN::Test::Fixture;
10 use SGN::Test::solGSData;
12 my $d = SGN::Test::WWW::WebDriver->new();
13 my $f = SGN::Test::Fixture->new();
15 my $solgs_data = SGN::Test::solGSData->new(
18 'accessions_list_subset' => 60,
19 'plots_list_subset' => 60
23 my $cache_dir = $solgs_data->site_cluster_shared_dir();
24 my $protocol_dir = $solgs_data->default_protocol_dir();
25 my $cluster_dir = catdir( $protocol_dir, 'cluster' );
26 my $log_dir = catdir( $protocol_dir, 'log' );
28 my $accessions_list = $solgs_data->load_accessions_list();
30 # my $accessions_list = $solgs_data->get_list_details('accessions');
31 my $accessions_list_name = $accessions_list->{list_name};
32 my $accessions_list_id = 'list_' . $accessions_list->{list_id};
34 "\naccessions list: $accessions_list_name -- $accessions_list_id\n";
35 my $plots_list = $solgs_data->load_plots_list();
37 # my $plots_list = $solgs_data->get_list_details('plots');
38 my $plots_list_name = $plots_list->{list_name};
39 my $plots_list_id = 'list_' . $plots_list->{list_id};
41 print STDERR "\nadding trials list\n";
42 my $trials_list = $solgs_data->load_trials_list();
44 # my $trials_list = $solgs_data->get_list_details('trials');
45 my $trials_list_name = $trials_list->{list_name};
46 my $trials_list_id = 'list_' . $trials_list->{list_id};
47 print STDERR "\nadding trials dataset\n";
49 # my $trials_dt = $solgs_data->get_dataset_details('trials');
50 my $trials_dt = $solgs_data->load_trials_dataset();
51 my $trials_dt_name = $trials_dt->{dataset_name};
52 my $trials_dt_id = 'dataset_' . $trials_dt->{dataset_id};
53 print STDERR "\nadding accessions dataset\n";
55 # my $accessions_dt = $solgs_data->get_dataset_details('accessions');
56 my $accessions_dt = $solgs_data->load_accessions_dataset();
57 my $accessions_dt_name = $accessions_dt->{dataset_name};
58 my $accessions_dt_id = 'dataset_' . $accessions_dt->{dataset_id};
60 print STDERR "\nadding plots dataset\n";
62 # my $plots_dt = $solgs_data->get_dataset_details('plots');
63 my $plots_dt = $solgs_data->load_plots_dataset();
64 my $plots_dt_name = $plots_dt->{dataset_name};
65 my $plots_dt_id = 'dataset_' . $plots_dt->{dataset_id};
67 #$accessions_dt_name = '' . $accessions_dt_name . '';
68 print STDERR "\ntrials dt: $trials_dt_name -- $trials_dt_id\n";
69 print STDERR "\naccessions dt: $accessions_dt_name -- $accessions_dt_id\n";
70 print STDERR "\nplots dt: $plots_dt_name -- $plots_dt_id\n";
72 print STDERR "\ntrials list: $trials_list_name -- $trials_list_id\n";
74 "\naccessions list: $accessions_list_name -- $accessions_list_id\n";
75 print STDERR "\nplots list: $plots_list_name -- $plots_list_id\n";
79 # `rm -r /tmp/localhost/GBSApeKIgenotypingv4/log/`;
81 $d->while_logged_in_as(
85 $d->get_ok( '/cluster/analysis', 'cluster home page' );
88 '//select[@id="cluster_pops_select"]/option[text()="'
89 . $accessions_list_name . '"]',
94 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
97 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
98 'xpath', 'select k-means' )->send_keys('K-means');
101 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
106 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
107 'xpath', 'select k number' )->send_keys(4);
110 '//*[starts-with(@id, "run_cluster")]',
112 'run clones list (genotype) clustering'
115 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
118 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
119 'xpath', 'scroll up' );
120 my $elem = $d->driver->execute_script(
121 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
125 '//img[@id="k-means-plot-'
126 . $accessions_list_id
127 . '-genotype-k-4-gp-1"]',
133 $d->driver->refresh();
137 '//select[@id="cluster_pops_select"]/option[text()="'
138 . $accessions_list_name . '"]',
143 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
146 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
147 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
150 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
155 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
156 'xpath', 'run cluster' )->click();
158 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
161 my $sel_pops = $d->find_element( '//*[contains(text(), "Select")]',
162 'xpath', 'scroll up' );
163 my $elem = $d->driver->execute_script(
164 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
168 '//img[@id="hierarchical-plot-'
169 . $accessions_list_id
170 . '-genotype-gp-1"]',
172 'check hierarchical plot'
176 $d->driver->refresh();
180 '//select[@id="cluster_pops_select"]/option[text()="'
181 . $plots_list_name . '"]',
186 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
189 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
190 'xpath', 'select k-means' )->send_keys('K-means');
193 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
198 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
199 'xpath', 'select k number' )->send_keys(4);
202 '//*[starts-with(@id, "run_cluster")]',
204 'run plots list (phenotype) clustering'
207 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
210 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
211 'xpath', 'scroll up' );
212 my $elem = $d->driver->execute_script(
213 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
217 '//img[@id="k-means-plot-' . $plots_list_id . '-phenotype-k-4"]',
218 'xpath', 'check k-means plot' )->click();
221 $d->driver->refresh();
225 '//select[@id="cluster_pops_select"]/option[text()="'
226 . $plots_list_name . '"]',
231 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
234 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
235 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
238 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
243 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
244 'xpath', 'run cluster' )->click();
246 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
249 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
250 'xpath', 'scroll up' );
251 my $elem = $d->driver->execute_script(
252 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
256 '//img[@id="hierarchical-plot-' . $plots_list_id . '-phenotype"]',
257 'xpath', 'check hierarchical plot' )->click();
260 $d->driver->refresh();
264 '//select[@id="cluster_pops_select"]/option[text()="'
265 . $trials_list_name . '"]',
270 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
273 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
274 'xpath', 'select k-means' )->send_keys('K-means');
277 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
282 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
283 'xpath', 'select k number' )->send_keys(4);
286 '//*[starts-with(@id, "run_cluster")]',
288 'run trials list (genotype) clustering'
291 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
294 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
295 'xpath', 'scroll up' );
296 my $elem = $d->driver->execute_script(
297 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
301 '//img[@id="k-means-plot-'
303 . '-genotype-k-4-gp-1"]',
309 $d->driver->refresh();
313 '//select[@id="cluster_pops_select"]/option[text()="'
314 . $trials_list_name . '"]',
319 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
322 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
323 'xpath', 'select k-means' )->send_keys('K-means');
326 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
331 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
332 'xpath', 'select k number' )->send_keys(4);
335 '//*[starts-with(@id, "run_cluster")]',
337 'run trials list (phenotype) clustering'
340 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
343 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
344 'xpath', 'scroll up' );
345 my $elem = $d->driver->execute_script(
346 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
349 '//img[@id="k-means-plot-' . $trials_list_id . '-phenotype-k-4"]',
350 'xpath', 'check k-means plot' )->click();
353 $d->driver->refresh();
357 '//select[@id="cluster_pops_select"]/option[text()="'
358 . $trials_list_name . '"]',
363 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
366 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
367 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
370 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
375 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
376 'xpath', 'run cluster' )->click();
378 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
381 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
382 'xpath', 'scroll up' );
383 my $elem = $d->driver->execute_script(
384 "arguments[0].scrollIntoView(true);window.scrollBy(0, 600);",
388 '//img[@id="hierarchical-plot-'
390 . '-genotype-gp-1"]',
392 'check hierarchical plot'
396 $d->driver->refresh();
399 `rm -r /tmp/localhost`;
403 '//select[@id="cluster_pops_select"]/option[text()="'
404 . $trials_list_name . '"]',
409 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
412 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
413 'xpath', 'select k-means' )->send_keys('K-means');
416 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
421 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
422 'xpath', 'select k number' )->send_keys(4);
424 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
425 'xpath', 'run cluster' )->click();
427 $d->find_element_ok( 'queue_job', 'id', 'job queueing' )->click();
429 $d->find_element_ok( 'analysis_name', 'id',
430 'trials list pheno analysis name' )
431 ->send_keys('trials list clustering');
433 $d->find_element_ok( 'user_email', 'id', 'user email' )
434 ->send_keys('email@email.com');
436 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
439 $d->driver->go_back();
443 '//select[@id="cluster_pops_select"]/option[text()="'
444 . $trials_list_name . '"]',
449 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
452 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
453 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
456 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
461 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
462 'xpath', 'run cluster' )->click();
464 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
467 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
468 'xpath', 'scroll up' );
469 my $elem = $d->driver->execute_script(
470 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
473 '//img[@id="hierarchical-plot-' . $trials_list_id . '-phenotype"]',
475 'check heirarchical plot'
479 $d->driver->refresh();
483 '//select[@id="cluster_pops_select"]/option[text()="'
484 . $trials_dt_name . '"]',
486 'select trials dataset'
489 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
492 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
493 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
496 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
501 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
502 'xpath', 'run cluster' )->click();
504 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
507 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
508 'xpath', 'scroll up' );
509 my $elem = $d->driver->execute_script(
510 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
514 '//img[@id="hierarchical-plot-' . $trials_dt_id . '-phenotype"]',
515 'xpath', 'check hierarchical plot' )->click();
518 $d->driver->refresh();
522 '//select[@id="cluster_pops_select"]/option[text()="'
523 . $trials_list_name . '"]',
528 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
531 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
532 'xpath', 'select k-means' )->send_keys('K-means');
535 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
540 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
541 'xpath', 'select k number' )->send_keys(4);
544 '//*[starts-with(@id, "run_cluster")]',
546 'run trials list (pheno) cluster'
550 # $d->find_element_ok('no_queue', 'id', 'no job queueing')->click();
553 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
554 'xpath', 'scroll up' );
555 my $elem = $d->driver->execute_script(
556 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
560 '//img[@id="k-means-plot-' . $trials_list_id . '-phenotype-k-4"]',
561 'xpath', 'check k-means plot' )->click();
564 $d->driver->refresh();
568 '//select[@id="cluster_pops_select"]/option[text()="'
569 . $trials_dt_name . '"]',
571 'select trials dataset'
574 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
577 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
578 'xpath', 'select k-means' )->send_keys('K-means');
581 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
586 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
587 'xpath', 'select k number' )->send_keys(4);
590 '//*[starts-with(@id, "run_cluster")]',
592 'run trials dataset (genotype) cluster'
595 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
598 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
599 'xpath', 'scroll up' );
600 my $elem = $d->driver->execute_script(
601 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
605 '//img[@id="k-means-plot-' . $trials_dt_id . '-genotype-k-4-gp-1"]',
611 $d->driver->refresh();
615 '//select[@id="cluster_pops_select"]/option[text()="'
616 . $trials_dt_name . '"]',
618 'select trials dataset'
621 $d->find_element_ok( '//input[@value="View"]', 'xpath', 'go btn' )
624 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
625 'xpath', 'select k-means' )->send_keys('K-means');
628 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
633 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
634 'xpath', 'select k number' )->send_keys(4);
637 '//*[starts-with(@id, "run_cluster")]',
639 'run trials dataset (phenotype) cluster'
642 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
645 my $sel_pops = $d->find_element( '//*[contains(text(), "Select a")]',
646 'xpath', 'scroll up' );
647 my $elem = $d->driver->execute_script(
648 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
652 '//img[@id="k-means-plot-' . $trials_dt_id . '-phenotype-k-4"]',
653 'xpath', 'check kmeans plot' )->click();
656 `rm -r /tmp/localhost`;
659 $d->get_ok( '/breeders/trial/139', 'trial detail home page' );
662 my $analysis_tools = $d->find_element(
665 'toogle analysis tools'
667 my $elem = $d->driver->execute_script(
668 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
674 'toogle analysis tools'
677 $d->find_element_ok( 'Clustering', 'partial_link_text',
678 'expand cluster sec' )->click();
680 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
681 'xpath', 'select k-means' )->send_keys('K-means');
684 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
689 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
690 'xpath', 'select k number' )->send_keys(4);
693 '//*[starts-with(@id, "run_cluster")]',
695 'run phenotype cluster'
698 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
700 $d->find_element_ok( '//img[@id="k-means-plot-139-phenotype-k-4"]',
701 'xpath', 'plot displayed' )->click();
704 $d->driver->refresh();
707 my $analysis_tools = $d->find_element(
710 'toogle analysis tools'
712 my $elem = $d->driver->execute_script(
713 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
719 'toogle analysis tools'
722 $d->find_element_ok( 'Clustering', 'partial_link_text',
723 'expand cluster sec' )->click();
725 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
726 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
729 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
734 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
735 'xpath', 'run cluster' )->click();
737 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
739 $d->find_element_ok( '//img[@id="hierarchical-plot-139-phenotype"]',
740 'xpath', 'plot displayed' )->click();
743 $d->driver->refresh();
747 $d->find_element( 'cluster_canvas', 'id', 'toogle analysis tools' );
748 my $elem = $d->driver->execute_script(
749 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
755 'toogle analysis tools'
758 $d->find_element_ok( 'Clustering', 'partial_link_text',
759 'expand cluster sec' )->click();
761 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
762 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
765 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
770 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
771 'xpath', 'run cluster' )->click();
773 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
775 $d->find_element_ok( '//img[@id="hierarchical-plot-139-genotype-gp-1"]',
776 'xpath', 'check hierarchical plot' )->click();
779 $d->driver->refresh();
783 $d->find_element( 'cluster_canvas', 'id', 'toogle analysis tools' );
784 my $elem = $d->driver->execute_script(
785 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
791 'toogle analysis tools'
794 $d->find_element_ok( 'Clustering', 'partial_link_text',
795 'expand cluster sec' )->click();
797 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
798 'xpath', 'select k-means' )->send_keys('K-means');
801 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
806 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
807 'xpath', 'clear k number' )->clear();
808 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
809 'xpath', 'select k number' )->send_keys(4);
812 '//*[starts-with(@id, "run_cluster")]',
814 'run genotype cluster'
817 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
819 $d->find_element_ok( '//img[@id="k-means-plot-139-genotype-k-4-gp-1"]',
820 'xpath', 'check k-means plot' )->click();
823 ############## solGS #####################
826 $d->get_ok( '/solgs', 'solgs homepage' );
829 $d->find_element_ok( 'trial_search_box', 'id',
830 'population search form' )->send_keys('Kasese solgs trial');
832 $d->find_element_ok( 'search_trial', 'id',
833 'search for training pop' )->click();
835 $d->find_element_ok( 'Kasese', 'partial_link_text',
836 'create training pop' )->click();
838 $d->find_element_ok( 'queue_job', 'id', 'submit job tr pop' )->click();
840 $d->find_element_ok( 'analysis_name', 'id', 'training data job name' )
841 ->send_keys('Test Kasese Tr pop');
843 $d->find_element_ok( 'user_email', 'id', 'user email' )
844 ->send_keys('email@email.com');
846 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
848 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
852 $d->find_element_ok( 'trial_search_box', 'id',
853 'population search form' )->send_keys('Kasese solgs trial');
855 $d->find_element_ok( 'search_trial', 'id',
856 'search for training pop' )->click();
858 $d->find_element_ok( 'Kasese', 'partial_link_text',
859 'create training pop' )->click();
863 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
864 'xpath', 'select 1st trait' )->click();
866 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
867 'xpath', 'select 2nd trait' )->click();
868 $d->find_element_ok( 'runGS', 'id', 'build multi models' )->click();
870 $d->find_element_ok( 'queue_job', 'id', 'multi models job queueing' )
873 $d->find_element_ok( 'analysis_name', 'id', 'job name' )
874 ->send_keys('Test DMCP-FRW modeling Kasese');
876 $d->find_element_ok( 'user_email', 'id', 'user email' )
877 ->send_keys('email@email.com');
879 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
881 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
886 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
887 'xpath', 'select 1st trait' )->click();
889 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
890 'xpath', 'select 2nd trait' )->click();
891 $d->find_element_ok( 'runGS', 'id', 'build multi models' )->click();
895 # ##############################################################
896 # # $d->get_ok('solgs/traits/all/population/139/traits/1971973596/gp/1', 'models page');
899 # #####################################################################
901 $d->find_element_ok( 'trial_search_box', 'id',
902 'population search form' )->send_keys('trial2 NaCRRI');
904 $d->find_element_ok( 'search_selection_pop', 'id',
905 'search for selection pop' )->click();
908 '//table[@id="selection_pops_table"]//*[contains(text(), "Predict")]',
913 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
915 $d->find_element_ok( 'analysis_name', 'id',
916 'multi trials sel job name' )
917 ->send_keys('Test DMCP-FRW selection pred nacrri');
919 $d->find_element_ok( 'user_email', 'id', 'user email' )
920 ->send_keys('email@email.com');
922 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
924 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
929 '//select[@id="list_type_selection_pops_select"]/option[text()="'
930 . $accessions_list_name . '"]',
932 'accessions list sl pop'
935 $d->find_element_ok( '//input[@value="View"]', 'xpath',
936 'select list sel pop' )->click();
939 '//table[@id="list_type_selection_pops_table"]//*[contains(text(), "Predict")]',
941 'click list sel pred'
944 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
946 $d->find_element_ok( 'analysis_name', 'id', 'list sel job name' )
947 ->send_keys('clones list dmc-frw sel pred');
949 $d->find_element_ok( 'user_email', 'id', 'user email' )
950 ->send_keys('email@email.com');
952 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
954 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
959 '//select[@id="list_type_selection_pops_select"]/option[text()="'
960 . $accessions_dt_name . '"]',
962 'accession select list sl pop'
965 $d->find_element_ok( '//input[@value="View"]', 'xpath',
966 'select dataset sel pop' )->click();
969 '//table[@id="list_type_selection_pops_table"]//*[contains(text(), "Predict")]',
974 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
976 $d->find_element_ok( 'analysis_name', 'id', 'dataset sel job name' )
977 ->send_keys('dataset clones sel pred');
979 $d->find_element_ok( 'user_email', 'id', 'user email' )
980 ->send_keys('email@email.com');
982 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
984 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
989 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
990 my $elem = $d->driver->execute_script(
991 "arguments[0].scrollIntoView(true);window.scrollBy(0, -200);",
995 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
997 'select list sel pop'
1000 $d->find_element_ok( 'list_type_selection_pops_select',
1001 'id', 'select clones list menu' )->click();
1003 my $list = $d->find_element_ok(
1004 '//select[@id="list_type_selection_pops_select"]/option[text()="'
1005 . $accessions_list_name . '"]',
1007 'select list sel pop'
1013 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1014 my $elem = $d->driver->execute_script(
1015 "arguments[0].scrollIntoView(true);window.scrollBy(0, -100);",
1017 $d->find_element_ok(
1018 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
1020 'select list sel pop'
1025 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1026 $d->driver->execute_script(
1027 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1030 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1033 $d->find_element_ok(
1034 '//select[@id="cluster_pops_select"]/option[text()="'
1035 . $accessions_list_name . '"]',
1037 'select accessions list sel pop'
1040 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1041 'xpath', 'select k-means' )->send_keys('K-means');
1043 $d->find_element_ok(
1044 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1045 'xpath', 'select gebv' )->click();
1047 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1048 'xpath', 'clear k number' )->clear();
1049 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1050 'xpath', 'select k number' )->send_keys(4);
1052 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1053 'xpath', 'run cluster' )->click();
1055 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1057 $d->find_element_ok(
1058 '//img[@id="k-means-plot-139-'
1059 . $accessions_list_id
1060 . '-traits-1971973596-gebv-k-4"]',
1062 'check k-means plot'
1066 $d->driver->refresh();
1070 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1071 my $elem = $d->driver->execute_script(
1072 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
1075 $d->find_element_ok( 'list_type_selection_pops_select',
1076 'id', 'select clones list menu' )->click();
1078 my $dataset = $d->find_element_ok(
1079 '//select[@id="list_type_selection_pops_select"]/option[text()="'
1080 . $accessions_dt_name . '"]',
1082 'select dataset sel pop'
1086 $d->find_element_ok(
1087 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
1089 'select list sel pop'
1093 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1094 $d->driver->execute_script(
1095 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1098 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1101 $d->find_element_ok(
1102 '//select[@id="cluster_pops_select"]/option[text()="'
1103 . $accessions_dt_name . '"]',
1105 'select accessions dataset sel pop'
1108 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1109 'xpath', 'select k-means' )->send_keys('K-means');
1111 $d->find_element_ok(
1112 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1117 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1118 'xpath', 'clear k number' )->clear();
1119 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1120 'xpath', 'select k number' )->send_keys(4);
1122 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1123 'xpath', 'run cluster' )->click();
1125 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1128 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1129 $d->driver->execute_script(
1130 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1133 $d->find_element_ok(
1134 '//img[@id="k-means-plot-139-'
1136 . '-traits-1971973596-genotype-k-4-gp-1"]',
1138 'check k-means plot'
1142 $d->driver->refresh();
1146 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1147 my $elem = $d->driver->execute_script(
1148 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
1151 $d->find_element_ok( 'list_type_selection_pops_select',
1152 'id', 'select clones list menu' )->click();
1154 my $dataset = $d->find_element_ok(
1155 '//select[@id="list_type_selection_pops_select"]/option[text()="'
1156 . $accessions_dt_name . '"]',
1158 'select accessions dataset sel pop'
1162 $d->find_element_ok(
1163 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
1165 'select list sel pop'
1170 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1171 $d->driver->execute_script(
1172 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1175 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1178 $d->find_element_ok(
1179 '//select[@id="cluster_pops_select"]/option[text()="'
1180 . $accessions_dt_name . '"]',
1182 'select accessions dataset sel pop'
1185 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1186 'xpath', 'select k-means' )->send_keys('K-means');
1188 $d->find_element_ok(
1189 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1190 'xpath', 'select gebv' )->click();
1192 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1193 'xpath', 'clear k number' )->clear();
1194 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1195 'xpath', 'select k number' )->send_keys(4);
1197 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1198 'xpath', 'run cluster' )->click();
1200 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1202 $d->find_element_ok(
1203 '//img[@id="k-means-plot-139-'
1205 . '-traits-1971973596-gebv-k-4"]',
1207 'check k-means plot'
1211 $d->driver->refresh();
1215 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1216 my $elem = $d->driver->execute_script(
1217 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
1220 $d->find_element_ok( 'list_type_selection_pops_select',
1221 'id', 'select clones list menu' )->click();
1223 my $dataset = $d->find_element_ok(
1224 '//select[@id="list_type_selection_pops_select"]/option[text()="'
1225 . $accessions_dt_name . '"]',
1227 'select dataset sel pop'
1231 $d->find_element_ok(
1232 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
1234 'select list sel pop'
1239 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1240 $d->driver->execute_script(
1241 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1244 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1247 $d->find_element_ok(
1248 '//select[@id="cluster_pops_select"]/option[text()="'
1249 . $accessions_dt_name . '"]',
1251 'select dataset sel pop'
1254 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1255 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1257 $d->find_element_ok(
1258 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1259 'xpath', 'select gebv' )->click();
1261 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1262 'xpath', 'run cluster' )->click();
1264 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1266 $d->find_element_ok(
1267 '//img[@id="hierarchical-plot-139-'
1269 . '-traits-1971973596-gebv"]',
1271 'check hierarchical plot'
1275 $d->driver->refresh();
1279 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1280 my $elem = $d->driver->execute_script(
1281 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
1284 $d->find_element_ok( 'list_type_selection_pops_select',
1285 'id', 'select clones list menu' )->click();
1288 my $dataset = $d->find_element_ok(
1289 '//select[@id="list_type_selection_pops_select"]/option[text()="'
1290 . $accessions_dt_name . '"]',
1292 'select dataset sel pop'
1296 $d->find_element_ok(
1297 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
1299 'GO select dataset sel popp'
1303 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1304 $d->driver->execute_script(
1305 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1308 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1311 $d->find_element_ok(
1312 '//select[@id="cluster_pops_select"]/option[text()="'
1313 . $accessions_dt_name . '"]',
1315 'select dataset sel pop'
1318 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1319 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1321 $d->find_element_ok(
1322 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1327 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1328 'xpath', 'run cluster' )->click();
1330 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1334 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1335 $d->driver->execute_script(
1336 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1339 $d->find_element_ok(
1340 '//img[@id="hierarchical-plot-139-'
1342 . '-traits-1971973596-genotype-gp-1"]',
1344 'check hierarchical plot'
1348 $d->driver->refresh();
1352 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1353 my $elem = $d->driver->execute_script(
1354 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1357 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1360 $d->find_element_ok(
1361 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
1363 'select trial tr pop'
1366 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1367 'xpath', 'select k-means' )->send_keys('K-means');
1369 $d->find_element_ok(
1370 '//select[@id="cluster_data_type_select"]/option[text()="Phenotype"]',
1371 'xpath', 'select ghenotype'
1374 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1375 'xpath', 'clear k number' )->clear();
1376 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1377 'xpath', 'select k number' )->send_keys(4);
1379 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1380 'xpath', 'run cluster' )->click();
1382 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1384 $d->find_element_ok(
1385 '//img[@id="k-means-plot-139-traits-1971973596-phenotype-k-4"]',
1386 'xpath', 'check k-means plot' )->click();
1389 $d->driver->refresh();
1393 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1394 $d->driver->execute_script(
1395 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1398 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1401 $d->find_element_ok(
1402 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
1404 'select trial tr pop'
1407 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1408 'xpath', 'select k-means' )->send_keys('K-means');
1410 $d->find_element_ok(
1411 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1416 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1417 'xpath', 'clear k number' )->clear();
1418 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1419 'xpath', 'select k number' )->send_keys(4);
1421 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1422 'xpath', 'run cluster' )->click();
1424 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1426 $d->find_element_ok(
1427 '//img[@id="k-means-plot-139-traits-1971973596-genotype-k-4-gp-1"]',
1428 'xpath', 'check k-means plot'
1432 $d->driver->refresh();
1436 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1437 $d->driver->execute_script(
1438 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1441 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1444 $d->find_element_ok(
1445 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
1447 'select trial tr pop'
1450 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1451 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1453 $d->find_element_ok(
1454 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1459 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1460 'xpath', 'run cluster' )->click();
1462 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1464 $d->find_element_ok(
1465 '//img[@id="hierarchical-plot-139-traits-1971973596-genotype-gp-1"]',
1466 'xpath', 'check hierarchical plot'
1470 $d->driver->refresh();
1474 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1475 $d->driver->execute_script(
1476 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1479 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1482 $d->find_element_ok(
1483 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
1485 'select trial tr pop'
1488 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1489 'xpath', 'select k-means' )->send_keys('K-means');
1491 $d->find_element_ok(
1492 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1493 'xpath', 'select gebv' )->click();
1495 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1496 'xpath', 'clear k number' )->clear();
1497 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1498 'xpath', 'select k number' )->send_keys(4);
1500 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1501 'xpath', 'run cluster' )->click();
1503 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1505 $d->find_element_ok(
1506 '//img[@id="k-means-plot-139-traits-1971973596-gebv-k-4"]',
1507 'xpath', 'check k-means plot' )->click();
1509 $d->driver->refresh();
1513 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1514 $d->driver->execute_script(
1515 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1518 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1521 $d->find_element_ok(
1522 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
1524 'select trial tr pop'
1527 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1528 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1530 $d->find_element_ok(
1531 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1532 'xpath', 'select gebv' )->click();
1534 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1535 'xpath', 'run cluster' )->click();
1537 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1539 $d->find_element_ok(
1540 '//img[@id="hierarchical-plot-139-traits-1971973596-gebv"]',
1541 'xpath', 'check hierarchical plot' )->click();
1543 $d->driver->refresh();
1546 my $cor = $d->find_element( 'Genetic correlation',
1547 'partial_link_text', 'scroll up' );
1548 $d->driver->execute_script(
1549 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1552 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
1555 $d->find_element_ok(
1556 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
1558 'select trial type tr pop'
1561 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
1563 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
1565 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
1570 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1571 $d->driver->execute_script(
1572 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1575 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1578 $d->find_element_ok(
1579 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
1580 'xpath', 'select sel index pop'
1583 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1584 'xpath', 'select k-means' )->send_keys('K-means');
1586 $d->find_element_ok(
1587 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1592 $d->find_element_ok(
1593 '//*[starts-with(@id, "selection_proportion_input")]',
1594 'xpath', 'fill in sel prop' )->send_keys('15');
1596 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1597 'xpath', 'clear k number' )->clear();
1599 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1600 'xpath', 'select k number' )->send_keys(4);
1602 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1603 'xpath', 'run cluster' )->click();
1605 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1607 $d->find_element_ok(
1608 '//img[@id="k-means-plot-139-139-DMCP-3-FRW-5-genotype-k-4-gp-1-sp-15"]',
1613 $d->driver->refresh();
1616 my $cor = $d->find_element( 'Genetic correlation',
1617 'partial_link_text', 'scroll up' );
1618 $d->driver->execute_script(
1619 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1622 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
1625 $d->find_element_ok(
1626 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
1628 'select trial type tr pop'
1631 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
1633 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
1635 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
1640 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1641 $d->driver->execute_script(
1642 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1645 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1648 $d->find_element_ok(
1649 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
1650 'xpath', 'select sel index pop'
1653 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1654 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1656 $d->find_element_ok(
1657 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1662 $d->find_element_ok(
1663 '//*[starts-with(@id, "selection_proportion_input")]',
1664 'xpath', 'fill in sel prop' )->send_keys('15');
1666 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1667 'xpath', 'run cluster' )->click();
1669 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1671 $d->find_element_ok(
1672 '//img[@id="hierarchical-plot-139-139-DMCP-3-FRW-5-genotype-gp-1-sp-15"]',
1677 $d->driver->refresh();
1681 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1682 $d->driver->execute_script(
1683 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1686 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1689 $d->find_element_ok(
1690 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1692 'select trial sel pop'
1695 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1696 'xpath', 'select k-means' )->send_keys('K-means');
1698 $d->find_element_ok(
1699 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1704 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1705 'xpath', 'clear k number' )->clear();
1706 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1707 'xpath', 'select k number' )->send_keys(4);
1709 $d->find_element_ok(
1710 '//*[starts-with(@id, "run_cluster")]',
1712 'run trial2 NaCRRI geno cluster'
1715 $d->find_element_ok( 'no_queue', 'id',
1716 'no job queueing -- trial2 NaCRRI geno cluster' )->click();
1718 $d->find_element_ok(
1719 '//img[@id="k-means-plot-139-141-traits-1971973596-genotype-k-4-gp-1"]',
1720 'xpath', 'check trial2 NaCRRI geno k-means plot'
1724 $d->driver->refresh();
1728 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1729 $d->driver->execute_script(
1730 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1733 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1736 $d->find_element_ok(
1737 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1739 'select trial sel pop'
1742 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1743 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1745 $d->find_element_ok(
1746 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1751 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1752 'xpath', 'run cluster' )->click();
1754 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1756 $d->find_element_ok(
1757 '//img[@id="hierarchical-plot-139-141-traits-1971973596-genotype-gp-1"]',
1758 'xpath', 'check hierarchical plot'
1762 $d->driver->refresh();
1766 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1767 $d->driver->execute_script(
1768 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1771 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1774 $d->find_element_ok(
1775 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1777 'select trial sel pop'
1780 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1781 'xpath', 'select k-means' )->send_keys('K-means');
1783 $d->find_element_ok(
1784 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1785 'xpath', 'select gebv' )->click();
1787 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1788 'xpath', 'clear k number' )->clear();
1789 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1790 'xpath', 'select k number' )->send_keys(4);
1792 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1793 'xpath', 'run cluster' )->click();
1795 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1797 $d->find_element_ok(
1798 '//img[@id="k-means-plot-139-141-traits-1971973596-gebv-k-4"]',
1799 'xpath', 'check k-means plot' )->click();
1802 $d->driver->refresh();
1806 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1807 $d->driver->execute_script(
1808 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1811 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1814 $d->find_element_ok(
1815 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1817 'select trial sel pop'
1820 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1821 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
1823 $d->find_element_ok(
1824 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="GEBV"]',
1829 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1830 'xpath', 'run cluster' )->click();
1832 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1834 $d->find_element_ok(
1835 '//img[@id="hierarchical-plot-139-141-traits-1971973596-gebv"]',
1836 'xpath', 'check hierarchical plot' )->click();
1839 $d->driver->refresh();
1842 `rm -r $cluster_dir`;
1847 # # $d->get_ok('solgs/traits/all/population/139/traits/1971973596/gp/1', 'models page');
1851 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1852 $d->driver->execute_script(
1853 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1856 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1859 $d->find_element_ok(
1860 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1862 'select trial sel pop'
1865 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1866 'xpath', 'select k-means' )->send_keys('K-means');
1868 $d->find_element_ok(
1869 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1874 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1875 'xpath', 'clear k number' )->clear();
1876 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1877 'xpath', 'select k number' )->send_keys(4);
1879 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1880 'xpath', 'run cluster' )->click();
1882 $d->find_element_ok( 'queue_job', 'id',
1883 'queueing trial2 NaCRRI geno km clustering' )->click();
1885 $d->find_element_ok( 'analysis_name', 'id',
1886 'analysis name -Nacrri sel pop geno clustering' )
1887 ->send_keys('Nacrri sel pop geno clustering');
1889 $d->find_element_ok( 'user_email', 'id', 'user email' )
1890 ->send_keys('email@email.com');
1892 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1894 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1898 $d->driver->refresh();
1902 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1903 $d->driver->execute_script(
1904 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1907 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1910 $d->find_element_ok(
1911 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1913 'select trial sel pop'
1916 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1917 'xpath', 'select k-means' )->send_keys('K-means');
1919 $d->find_element_ok(
1920 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1925 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1926 'xpath', 'clear k number' )->clear();
1927 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1928 'xpath', 'select k number' )->send_keys(4);
1930 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1931 'xpath', 'run cluster' )->click();
1933 $d->find_element_ok(
1934 '//img[@id="k-means-plot-139-141-traits-1971973596-genotype-k-4-gp-1"]',
1935 'xpath', 'check k-means plot'
1939 $d->driver->refresh();
1943 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1944 $d->driver->execute_script(
1945 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1948 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1951 $d->find_element_ok(
1952 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1954 'select trial sel pop'
1957 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1958 'xpath', 'select k-means' )->send_keys('K-means');
1960 $d->find_element_ok(
1961 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1962 'xpath', 'select gebv' )->click();
1964 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1965 'xpath', 'clear k number' )->clear();
1966 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1967 'xpath', 'select k number' )->send_keys(4);
1969 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1970 'xpath', 'run cluster' )->click();
1972 $d->find_element_ok( 'queue_job', 'id',
1973 'queueing trial2 NaCRRI gebv cluster' )->click();
1975 $d->find_element_ok( 'analysis_name', 'id',
1976 'analysis name -Nacrri sel pop gebv clustering' )
1977 ->send_keys('Nacrri sel pop gebv clustering');
1979 $d->find_element_ok( 'user_email', 'id', 'user email' )
1980 ->send_keys('email@email.com');
1982 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1984 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1988 $d->driver->refresh();
1992 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1993 $d->driver->execute_script(
1994 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1997 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2000 $d->find_element_ok(
2001 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
2003 'select trial sel pop'
2006 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2007 'xpath', 'select k-means' )->send_keys('K-means');
2009 $d->find_element_ok(
2010 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
2011 'xpath', 'select gebv' )->click();
2013 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2014 'xpath', 'clear k number' )->clear();
2015 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2016 'xpath', 'select k number' )->send_keys(4);
2018 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2019 'xpath', 'run cluster' )->click();
2021 $d->find_element_ok(
2022 '//img[@id="k-means-plot-139-141-traits-1971973596-gebv-k-4"]',
2023 'xpath', 'check k-means plot' )->click();
2026 $d->driver->refresh();
2029 my $cor = $d->find_element( 'Genetic correlation',
2030 'partial_link_text', 'scroll up' );
2031 $d->driver->execute_script(
2032 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2035 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
2038 $d->find_element_ok(
2039 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
2041 'select trial type tr pop'
2044 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
2046 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
2048 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
2053 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2054 $d->driver->execute_script(
2055 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2058 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2061 $d->find_element_ok(
2062 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
2063 'xpath', 'select sel index pop'
2066 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2067 'xpath', 'select k-means' )->send_keys('K-means');
2069 $d->find_element_ok(
2070 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2075 $d->find_element_ok(
2076 '//*[starts-with(@id, "selection_proportion_input")]',
2077 'xpath', 'fill in sel prop' )->send_keys('15');
2079 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2080 'xpath', 'clear k number' )->clear();
2081 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2082 'xpath', 'select k number' )->send_keys(4);
2084 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2085 'xpath', 'run cluster' )->click();
2087 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
2089 $d->find_element_ok( 'analysis_name', 'id',
2090 'analysis name -Nacrri sel pop sindex clustering' )
2091 ->send_keys('Nacrri sel pop sindex clustering');
2093 $d->find_element_ok( 'user_email', 'id', 'user email' )
2094 ->send_keys('email@email.com');
2096 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2098 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
2102 my $cor = $d->find_element( 'Genetic correlation',
2103 'partial_link_text', 'scroll up' );
2104 $d->driver->execute_script(
2105 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2108 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
2111 $d->find_element_ok(
2112 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
2114 'select trial type tr pop'
2117 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
2119 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
2121 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
2126 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2127 $d->driver->execute_script(
2128 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2131 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2134 $d->find_element_ok(
2135 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
2136 'xpath', 'select sel index pop'
2139 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2140 'xpath', 'select k-means' )->send_keys('K-means');
2142 $d->find_element_ok(
2143 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2148 $d->find_element_ok(
2149 '//*[starts-with(@id, "selection_proportion_input")]',
2150 'xpath', 'fill in sel prop' )->send_keys('15');
2152 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2153 'xpath', 'clear k number' )->clear();
2154 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2155 'xpath', 'select k number' )->send_keys(4);
2157 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2158 'xpath', 'run cluster' )->click();
2160 $d->find_element_ok(
2161 '//img[@id="k-means-plot-139-139-DMCP-3-FRW-5-genotype-k-4-gp-1-sp-15"]',
2166 $d->driver->refresh();
2169 #########################
2170 `rm -r $cluster_dir`;
2174 ########################################
2177 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2178 $d->driver->execute_script(
2179 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2182 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2185 $d->find_element_ok(
2186 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
2188 'select trial sel pop'
2191 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2192 'xpath', 'select k-means' )->send_keys('K-means');
2194 $d->find_element_ok(
2195 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2200 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2201 'xpath', 'clear k number' )->clear();
2202 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2203 'xpath', 'select k number' )->send_keys(4);
2205 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2206 'xpath', 'run cluster' )->click();
2208 $d->find_element_ok( 'no_queue', 'id',
2209 'wait to finish clustering trial2 NaCRRI genotype' )->click();
2211 $d->find_element_ok(
2212 '//img[@id="k-means-plot-139-141-traits-1971973596-genotype-k-4-gp-1"]',
2213 'xpath', 'check k-means plot'
2217 $d->driver->refresh();
2221 # # # $d->get_ok('/solgs/trait/70666/population/139/gp/1', 'open model page');
2226 $d->find_element( 'Models summary', 'partial_link_text',
2228 $d->driver->execute_script(
2229 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2232 $d->find_element_ok(
2233 '//table[@id="model_summary"]//*[contains(text(), "FRW")]',
2234 'xpath', 'click training pop' )->click();
2239 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2240 $d->driver->execute_script(
2241 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2244 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2245 'xpath', 'select k-means' )->send_keys('K-means');
2247 $d->find_element_ok(
2248 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2253 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2254 'xpath', 'clear k number' )->clear();
2255 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2256 'xpath', 'select k number' )->send_keys(4);
2258 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2259 'xpath', 'run cluster' )->click();
2261 $d->find_element_ok( 'no_queue', 'id',
2262 'wait to finish clustering in single trial model page' )->click();
2264 $d->find_element_ok(
2265 '//img[@id="k-means-plot-139-70666-genotype-k-4-gp-1"]',
2266 'xpath', 'check k-means plot' )->click();
2269 $d->driver->refresh();
2273 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2274 $d->driver->execute_script(
2275 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2278 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2279 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
2281 $d->find_element_ok(
2282 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2287 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2288 'xpath', 'run cluster' )->click();
2290 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2292 $d->find_element_ok(
2293 '//img[@id="hierarchical-plot-139-70666-genotype-gp-1"]',
2294 'xpath', 'check hierarchical plot' )->click();
2297 # # # #$d->get_ok('/solgs/model/combined/populations/2804608595/trait/70741/gp/1', 'open combined trials model page');
2301 $d->get_ok( '/solgs', 'solgs home page' );
2303 $d->find_element_ok( 'trial_search_box', 'id',
2304 'population search form' )->send_keys('Kasese solgs trial');
2306 $d->find_element_ok( 'search_trial', 'id',
2307 'search for training pop' )->click();
2309 $d->find_element_ok( 'trial_search_box', 'id',
2310 'population search form' )->clear();
2312 $d->find_element_ok( 'trial_search_box', 'id',
2313 'population search form' )->send_keys('trial2 nacrri');
2315 $d->find_element_ok( 'search_trial', 'id',
2316 'search for training pop' )->click();
2319 $d->find_element_ok(
2320 '//table[@id="searched_trials_table"]//input[@value="139"]',
2321 'xpath', 'select trial kasese' )->click();
2323 $d->find_element_ok(
2324 '//table[@id="searched_trials_table"]//input[@value="141"]',
2325 'xpath', 'select trial nacrri' )->click();
2327 $d->find_element_ok( 'select_trials_btn', 'id', 'done selecting' )
2330 $d->find_element_ok( 'combine_trait_trials', 'id', 'combine trials' )
2333 $d->find_element_ok( 'queue_job', 'id', 'submit job tr pop' )->click();
2335 $d->find_element_ok( 'analysis_name', 'id', 'job queueing' )
2336 ->send_keys('combined trials');
2338 $d->find_element_ok( 'user_email', 'id', 'user email' )
2339 ->send_keys('email@email.com');
2341 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2343 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
2347 # ####################
2348 # # #$d->get('/solgs/populations/combined/2804608595/gp/1', 'combo trials tr pop page');
2351 # ##################
2352 $d->get_ok( '/solgs', 'solgs homepage' );
2355 $d->find_element_ok( 'trial_search_box', 'id',
2356 'population search form' )->send_keys('Kasese solgs trial');
2358 $d->find_element_ok( 'search_trial', 'id',
2359 'search for training pop' )->click();
2361 $d->find_element_ok( 'trial_search_box', 'id',
2362 'population search form' )->clear();
2364 $d->find_element_ok( 'trial_search_box', 'id',
2365 'population search form' )->send_keys('trial2 nacrri');
2367 $d->find_element_ok( 'search_trial', 'id',
2368 'search for training pop' )->click();
2371 $d->find_element_ok(
2372 '//table[@id="searched_trials_table"]//input[@value="139"]',
2373 'xpath', 'select trial kasese' )->click();
2375 $d->find_element_ok(
2376 '//table[@id="searched_trials_table"]//input[@value="141"]',
2377 'xpath', 'select trial nacrri' )->click();
2379 $d->find_element_ok( 'select_trials_btn', 'id', 'done selecting' )
2382 $d->find_element_ok( 'combine_trait_trials', 'id', 'combine trials' )
2386 $d->find_element_ok(
2387 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
2388 'xpath', 'select 1st trait' )->click();
2390 $d->find_element_ok(
2391 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
2392 'xpath', 'select 2nd trait' )->click();
2394 $d->find_element_ok( 'runGS', 'id',
2395 'run combined trials build multi models' )->click();
2397 $d->find_element_ok( 'queue_job', 'id', 'combined trials job queueing' )
2400 $d->find_element_ok( 'analysis_name', 'id',
2401 'combined trials multi models job name' )
2402 ->send_keys('Test DMCP-FRW modeling combo trials');
2404 $d->find_element_ok( 'user_email', 'id', 'user email' )
2405 ->send_keys('email@email.com');
2407 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2409 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
2413 # # ###########################
2414 # # # $d->get('/solgs/populations/combined/2804608595/gp/1', 'combo trials tr pop page');
2416 # # ############################
2418 $d->find_element_ok(
2419 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
2420 'xpath', 'select 1st trait' )->click();
2422 $d->find_element_ok(
2423 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
2424 'xpath', 'select 2nd trait' )->click();
2426 $d->find_element_ok( 'runGS', 'id',
2427 ' go to combined trials multi models page' )->click();
2430 $d->find_element_ok( 'trial_search_box', 'id',
2431 'combo trials models sel population search form' )
2432 ->send_keys('trial2 NaCRRI');
2434 $d->find_element_ok( 'search_selection_pop', 'id',
2435 'search for selection pop' )->click();
2437 $d->find_element_ok(
2438 '//table[@id="selection_pops_table"]//*[contains(text(), "Predict")]',
2440 'click training pop'
2443 $d->find_element_ok( 'queue_job', 'id',
2444 'trial sel pop prediction job queueing' )->click();
2446 $d->find_element_ok( 'analysis_name', 'id',
2447 'sel pop prediction analysis name' )
2448 ->send_keys('combo DMCP-FRW selection pred nacrri');
2450 $d->find_element_ok( 'user_email', 'id', 'user email' )
2451 ->send_keys('email@email.com');
2453 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2455 $d->find_element_ok( 'Go back', 'partial_link_text',
2456 'go back to combo trials multi models pg' )->click();
2459 $d->find_element_ok(
2460 '//select[@id="list_type_selection_pops_select"]/option[text()="'
2461 . $accessions_list_name . '"]',
2466 $d->find_element_ok( '//input[@value="View"]', 'xpath',
2467 'select list sel pop' )->click();
2469 $d->find_element_ok(
2470 '//table[@id="list_type_selection_pops_table"]//*[contains(text(), "Predict")]',
2472 'click list sel pred'
2475 $d->find_element_ok( 'queue_job', 'id',
2476 'list type sel pop prediction job queueing' )->click();
2478 $d->find_element_ok( 'analysis_name', 'id',
2479 'list type sel pop prediction analysis name' )
2480 ->send_keys('combo clones list dmc-frw sel pred');
2482 $d->find_element_ok( 'user_email', 'id', 'user email' )
2483 ->send_keys('email@email.com');
2485 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2487 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
2491 $d->find_element_ok(
2492 '//select[@id="list_type_selection_pops_select"]/option[text()="'
2493 . $accessions_dt_name . '"]',
2495 'select list sl pop'
2498 $d->find_element_ok( '//input[@value="View"]', 'xpath',
2499 'select dataset sel pop' )->click();
2501 $d->find_element_ok(
2502 '//table[@id="list_type_selection_pops_table"]//*[contains(text(), "Predict")]',
2504 'click accessions dataset sel pred'
2507 $d->find_element_ok( 'queue_job', 'id',
2508 'dataset sel pop prediction job queueing' )->click();
2510 $d->find_element_ok( 'analysis_name', 'id',
2511 'dataset sel pop prediction analysis name' )
2512 ->send_keys('combo dataset clones sel pred');
2514 $d->find_element_ok( 'user_email', 'id', 'user email' )
2515 ->send_keys('email@email.com');
2517 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
2519 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
2524 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2525 $d->driver->execute_script(
2526 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2529 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2532 $d->find_element_ok(
2533 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2535 'select list sel pop'
2538 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2539 'xpath', 'select k-means' )->send_keys('K-means');
2541 $d->find_element_ok(
2542 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
2547 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2548 'xpath', 'select k number' )->send_keys(4);
2550 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2551 'xpath', 'run cluster' )->click();
2553 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2555 $d->find_element_ok(
2556 '//img[@id="k-means-plot-2804608595-traits-1971973596-phenotype-k-4"]',
2557 'xpath', 'check k-means plot'
2561 $d->driver->refresh();
2565 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2566 $d->driver->execute_script(
2567 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2570 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2573 $d->find_element_ok(
2574 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2576 'select list sel pop'
2579 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2580 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
2582 $d->find_element_ok(
2583 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
2588 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2589 'xpath', 'run cluster' )->click();
2591 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2593 $d->find_element_ok(
2594 '//img[@id="hierarchical-plot-2804608595-traits-1971973596-phenotype"]',
2595 'xpath', 'check hierarchical plot'
2599 $d->driver->refresh();
2603 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2604 $d->driver->execute_script(
2605 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2608 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2611 $d->find_element_ok(
2612 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2614 'select list sel pop'
2617 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2618 'xpath', 'select k-means' )->send_keys('K-means');
2620 $d->find_element_ok(
2621 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
2622 'xpath', 'select phenotype' )->click();
2624 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2625 'xpath', 'select k number' )->send_keys(4);
2627 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2628 'xpath', 'run cluster' )->click();
2630 $d->find_element_ok( 'no_queue', 'id', 'no job queueing -- GEBV' )
2633 $d->find_element_ok(
2634 '//img[@id="k-means-plot-2804608595-traits-1971973596-gebv-k-4"]',
2635 'xpath', 'check k-means plot' )->click();
2638 $d->driver->refresh();
2642 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2643 $d->driver->execute_script(
2644 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2647 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2650 $d->find_element_ok(
2651 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2653 'select list sel pop'
2656 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2657 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
2659 $d->find_element_ok(
2660 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
2661 'xpath', 'select phenotype' )->click();
2663 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2664 'xpath', 'run cluster' )->click();
2666 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2668 $d->find_element_ok(
2669 '//img[@id="hierarchical-plot-2804608595-traits-1971973596-gebv"]',
2670 'xpath', 'check hierarchical plot'
2674 $d->driver->refresh();
2678 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2679 $d->driver->execute_script(
2680 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2683 $d->find_element_ok( 'cluster_pops_select', 'id', 'click cluster pops' )
2686 $d->find_element_ok(
2687 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2692 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2693 'xpath', 'select k-means' )->send_keys('K-means');
2695 $d->find_element_ok(
2696 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2701 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2702 'xpath', 'clear k number' )->clear();
2703 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2704 'xpath', 'select k number' )->send_keys(4);
2706 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2707 'xpath', 'run cluster' )->click();
2709 $d->find_element_ok( 'no_queue', 'id', 'no job queueing-- Genotype' )
2712 $d->find_element_ok(
2713 '//img[@id="k-means-plot-2804608595-traits-1971973596-genotype-k-4-gp-1"]',
2718 $d->driver->refresh();
2722 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2723 $d->driver->execute_script(
2724 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2727 $d->find_element_ok( 'cluster_pops_select', 'id', 'click cluster pops' )
2730 $d->find_element_ok(
2731 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
2736 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2737 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
2739 $d->find_element_ok(
2740 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
2745 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2746 'xpath', 'run cluster' )->click();
2748 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2750 $d->find_element_ok(
2751 '//img[@id="hierarchical-plot-2804608595-traits-1971973596-genotype-gp-1"]',
2756 $d->driver->refresh();
2759 my $cor = $d->find_element( 'Genetic correlation',
2760 'partial_link_text', 'scroll up' );
2761 $d->driver->execute_script(
2762 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2765 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
2768 $d->find_element_ok(
2769 '//select[@id="si_pops_select"]/option[text()="Training population 2804608595"]',
2774 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
2776 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
2778 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
2783 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2784 $d->driver->execute_script(
2785 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
2788 $d->find_element_ok( 'cluster_pops_select', 'id', 'click cluster pops' )
2791 $d->find_element_ok(
2792 '//select[@id="cluster_pops_select"]/option[text()="2804608595-DMCP-3-FRW-5"]',
2796 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2797 'xpath', 'select k-means' )->send_keys('K-means');
2799 $d->find_element_ok(
2800 '//select[@id="cluster_data_type_select"]/option[text()="Genotype"]',
2804 $d->find_element_ok(
2805 '//*[starts-with(@id, "selection_proportion_input")]',
2806 'xpath', 'fill in sel prop' )->send_keys('15');
2808 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2809 'xpath', 'clear k number' )->clear();
2810 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2811 'xpath', 'select k number' )->send_keys(4);
2813 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2814 'xpath', 'run cluster' )->click();
2816 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2818 $d->find_element_ok(
2819 '//img[@id="k-means-plot-2804608595-2804608595-DMCP-3-FRW-5-genotype-k-4-gp-1-sp-15"]',
2824 $d->driver->refresh();
2827 # #$d->get_ok('/solgs/models/combined/trials/2804608595/traits/1971973596/gp/1', 'combined trials models summary page');
2831 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
2832 my $elem = $d->driver->execute_script(
2833 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
2836 $d->find_element_ok( 'list_type_selection_pops_select',
2837 'id', 'select clones list menu' )->click();
2839 my $dataset = $d->find_element_ok(
2840 '//select[@id="list_type_selection_pops_select"]/option[text()="'
2841 . $accessions_dt_name . '"]',
2843 'select dataset sel pop'
2847 $d->find_element_ok(
2848 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
2850 'select list sel pop'
2855 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2856 $d->driver->execute_script(
2857 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2860 $d->find_element_ok( 'cluster_pops_select', 'id',
2861 'select dataset type sl pop - GEBV' )->click();
2863 $d->find_element_ok(
2864 '//select[@id="cluster_pops_select"]/option[text()="'
2865 . $accessions_dt_name . '"]',
2867 'select dataset sel pop'
2870 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2871 'xpath', 'select k-means' )->send_keys('K-means');
2873 $d->find_element_ok(
2874 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
2875 'xpath', 'select gebv' )->click();
2877 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2878 'xpath', 'clear k number' )->clear();
2879 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2880 'xpath', 'select k number' )->send_keys(4);
2882 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2883 'xpath', 'run GEBV cluster' )->click();
2885 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2887 $d->find_element_ok(
2888 '//img[@id="k-means-plot-2804608595-'
2890 . '-traits-1971973596-gebv-k-4"]',
2892 'check k-means plot'
2896 $d->driver->refresh();
2900 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
2901 my $elem = $d->driver->execute_script(
2902 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
2905 $d->find_element_ok( 'list_type_selection_pops_select',
2906 'id', 'select clones list menu' )->click();
2908 my $dataset = $d->find_element_ok(
2909 '//select[@id="list_type_selection_pops_select"]/option[text()="'
2910 . $accessions_dt_name . '"]',
2912 'select dataset sel pop'
2916 $d->find_element_ok(
2917 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
2919 'select list sel pop'
2924 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2925 $d->driver->execute_script(
2926 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2929 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
2932 $d->find_element_ok(
2933 '//select[@id="cluster_pops_select"]/option[text()="'
2934 . $accessions_dt_name . '"]',
2936 'select dataset sel pop'
2939 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
2940 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
2942 $d->find_element_ok(
2943 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
2944 'xpath', 'select gebv' )->click();
2946 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
2947 'xpath', 'run cluster' )->click();
2949 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2951 $d->find_element_ok(
2952 '//img[@id="hierarchical-plot-2804608595-'
2954 . '-traits-1971973596-gebv"]',
2956 'check hierarchical plot'
2960 $d->driver->refresh();
2964 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
2965 my $elem = $d->driver->execute_script(
2966 "arguments[0].scrollIntoView(true);window.scrollBy(0, -200);",
2969 $d->find_element_ok(
2970 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
2972 'select list type sel pop'
2975 $d->find_element_ok( 'list_type_selection_pops_select',
2976 'id', 'select clones list menu' )->click();
2978 my $list = $d->find_element_ok(
2979 '//select[@id="list_type_selection_pops_select"]/option[text()="'
2980 . $accessions_list_name . '"]',
2982 'select list sel pop'
2986 $d->find_element_ok(
2987 '//div[ @id="list_type_selection_pop_go_btn"]/input[@value="View"]',
2989 'select list sel pop'
2994 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
2995 $d->driver->execute_script(
2996 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
2999 $d->find_element_ok( 'cluster_pops_select', 'id',
3000 'select list type sl pop -- GEBV' )->click();
3002 $d->find_element_ok(
3003 '//select[@id="cluster_pops_select"]/option[text()="'
3004 . $accessions_list_name . '"]',
3006 'select list sel pop'
3009 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3010 'xpath', 'select k-means' )->send_keys('K-means');
3012 $d->find_element_ok(
3013 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
3014 'xpath', 'select gebv' )->click();
3016 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3017 'xpath', 'clear k number' )->clear();
3018 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3019 'xpath', 'select k number' )->send_keys(4);
3021 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
3022 'xpath', 'run cluster' )->click();
3024 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3026 $d->find_element_ok(
3027 '//img[@id="k-means-plot-2804608595-'
3028 . $accessions_list_id
3029 . '-traits-1971973596-gebv-k-4"]',
3031 'check k-means plot'
3035 $d->driver->refresh();
3039 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
3040 $d->driver->execute_script(
3041 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
3044 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
3047 $d->find_element_ok(
3048 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
3050 'select trial sel pop'
3053 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3054 'xpath', 'select k-means' )->send_keys('K-means');
3056 $d->find_element_ok(
3057 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
3062 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3063 'xpath', 'clear k number' )->clear();
3064 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3065 'xpath', 'select k number' )->send_keys(4);
3067 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
3068 'xpath', 'run cluster' )->click();
3070 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3072 $d->find_element_ok(
3073 '//img[@id="k-means-plot-2804608595-141-traits-1971973596-genotype-k-4-gp-1"]',
3074 'xpath', 'check k-means plot'
3078 $d->driver->refresh();
3082 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
3083 $d->driver->execute_script(
3084 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
3087 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
3090 $d->find_element_ok(
3091 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
3093 'select trial sel pop'
3096 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3097 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
3099 $d->find_element_ok(
3100 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
3101 'xpath', 'select gebv' )->click();
3103 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
3104 'xpath', 'run cluster' )->click();
3106 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3108 $d->find_element_ok(
3109 '//img[@id="hierarchical-plot-2804608595-141-traits-1971973596-gebv"]',
3110 'xpath', 'check hierarchical plot'
3114 $d->driver->refresh();
3119 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
3120 $d->driver->execute_script(
3121 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
3124 $d->find_element_ok( 'cluster_pops_select', 'id',
3125 'select trial sl pop -- GEBV' )->click();
3127 $d->find_element_ok(
3128 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
3130 'select trial sel pop'
3133 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3134 'xpath', 'select k-means' )->send_keys('K-means');
3136 $d->find_element_ok(
3137 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
3138 'xpath', 'select gebv' )->click();
3140 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3141 'xpath', 'clear k number' )->clear();
3142 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3143 'xpath', 'select k number' )->send_keys(4);
3145 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
3146 'xpath', 'run cluster' )->click();
3148 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3150 $d->find_element_ok(
3151 '//img[@id="k-means-plot-2804608595-141-traits-1971973596-gebv-k-4"]',
3152 'xpath', 'check k-means plot'
3156 $d->driver->refresh();
3160 $d->find_element( 'Models summary', 'partial_link_text',
3162 $d->driver->execute_script(
3163 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
3166 $d->find_element_ok(
3167 '//table[@id="model_summary"]//*[contains(text(), "DMCP")]',
3168 'xpath', 'go to training model pg' )->click();
3172 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
3173 $d->driver->execute_script(
3174 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
3178 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3179 'xpath', 'select k-means' )->send_keys('K-means');
3181 $d->find_element_ok(
3182 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
3187 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3188 'xpath', 'clear k number' )->clear();
3189 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
3190 'xpath', 'select k number' )->send_keys(4);
3192 $d->find_element_ok(
3193 '//*[starts-with(@id, "run_cluster")]',
3195 'run genotype cluster'
3198 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3200 $d->find_element_ok(
3201 '//img[@id="k-means-plot-2804608595-70741-genotype-k-4-gp-1"]',
3202 'xpath', 'check k-means plot' )->click();
3205 $d->driver->refresh();
3209 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
3210 $d->driver->execute_script(
3211 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
3215 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
3216 'xpath', 'select hierarchical' )->send_keys('Hierarchical');
3218 $d->find_element_ok(
3219 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
3224 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
3225 'xpath', 'run cluster' )->click();
3227 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
3229 $d->find_element_ok(
3230 '//img[@id="hierarchical-plot-2804608595-70741-genotype-gp-1"]',
3231 'xpath', 'check hierarchical plot' )->click();
3235 my $list_id ( $trials_list_id, $accessions_list_id, $plots_list_id )
3237 $list_id =~ s/\w+_//g;
3238 $solgs_data->delete_list($list_id);
3242 my $dataset_id ( $trials_dt_id, $accessions_dt_id, $plots_dt_id )
3244 $dataset_id =~ s/\w+_//g;
3245 $solgs_data->delete_dataset($dataset_id);