@@ -77,6 +77,7 @@ private void testNormalStuff()
7777 assertElementContains (Locator .xpath ("//ul[@id='livepeptidelist']//li[" +index +"]" ), peptidesOrderLocation [i ]);
7878 }
7979 click (Locator .xpath ("//button[@id='formreset']" )); // reset form check reset works
80+ waitForElement (Locator .tagWithId ("ul" , "livepeptidelist" ));
8081 for (int i = 0 ; i < peptidesOrderIntensity .length ; i ++) {
8182 int index = i +1 ;
8283 assertElementContains (Locator .xpath ("//ul[@id='livepeptidelist']//li[" +index +"]" ), peptidesOrderIntensity [i ]);
@@ -86,13 +87,15 @@ private void testNormalStuff()
8687 dragAndDrop (Locator .xpath ("//div[@id='rangesliderdeg']//span[1]" ), 50 , 0 );
8788 assertElementContains (Locator .xpath ("//span[@id='filteredPeptideCount']//green" ), "15" );
8889 click (Locator .xpath ("//button[@id='formreset']" )); // reset form check reset works
90+
91+ waitForElement (Locator .tagWithId ("span" , "filteredPeptideCount" ).childTag ("green" ));
8992 assertElementContains (Locator .xpath ("//span[@id='filteredPeptideCount']//green" ), "19" );
9093
9194 //features
92- assertElementPresent (Locator .xpath ( "//td[contains(@class, ' feature-sequencevariant')] " ), 5 );
93- assertElementPresent (Locator .xpath ( "//td[contains(@class, ' feature-glycosylationsite')] " ), 4 );
94- assertElementPresent (Locator .xpath ( "//td[contains(@class, ' feature-helix')] " ), 7 );
95- assertElementPresent (Locator .xpath ( "//td[contains(@class, ' feature-turn')] " ), 6 );
95+ waitForElements (Locator .tagWithClass ( "td" , " feature-sequencevariant" ), 5 );
96+ waitForElements (Locator .tagWithClass ( "td" , " feature-glycosylationsite" ), 4 );
97+ waitForElements (Locator .tagWithClass ( "td" , " feature-helix" ), 7 );
98+ waitForElements (Locator .tagWithClass ( "td" , " feature-turn" ), 6 );
9699 }
97100
98101 @ LogMethod
0 commit comments