I cannot convert the following test case with the lastest version of the SeleneseRunner from here http://www.smartclient.com/product/download.jsp.
First of all the & in the url are not converted to &s when opening the URL.
The bigger problem is that every time setSpeed, sendKeys and store are called I get NoSuchMethodExceptions
First of all the & in the url are not converted to &s when opening the URL.
The bigger problem is that every time setSpeed, sendKeys and store are called I get NoSuchMethodExceptions
java.lang.NoSuchMethodException: No match for: sendKeys(By.scLocator: //Window[ID='FeverchartSearchIncludingAlternativesWindow']/item[0][Class='VLayout']/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=simvastatin%3A101||index=0||Class=TextItem]/element/ByScLocator, ${KEY_ENTER}/String)
at com.isomorphic.webdriver.Operation.execute(Operation.java:146)
at com.isomorphic.webdriver.SeleneseTestCaseParser.visitTag(SeleneseTestCaseParser.java:74)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:470)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.Parser.visitAllNodesWith(Parser.java:728)
at com.isomorphic.webdriver.SeleneseRunner.parseEntry(SeleneseRunner.java:260)
at com.isomorphic.webdriver.SeleneseRunner.main(SeleneseRunner.java:210)
at com.isomorphic.webdriver.Operation.execute(Operation.java:146)
at com.isomorphic.webdriver.SeleneseTestCaseParser.visitTag(SeleneseTestCaseParser.java:74)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:470)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.tags.CompositeTag.accept(CompositeTag.java:479)
at org.htmlparser.Parser.visitAllNodesWith(Parser.java:728)
at com.isomorphic.webdriver.SeleneseRunner.parseEntry(SeleneseRunner.java:260)
at com.isomorphic.webdriver.SeleneseRunner.main(SeleneseRunner.java:210)
Code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="http://wkhts100alt:9280/" /> <title>testcase6</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">testcase6</td></tr> </thead><tbody> <tr> <td>setSpeed</td> <td>1000</td> <td></td> </tr> <tr> <td>store</td> <td>b_20160531_1</td> <td>az</td> </tr> <tr> <td>open</td> <td>/eMedicClient/residentialMedication.jsp?user=berger&az=b_20160531_1&isPilotMode=false&showheader=true</td> <td></td> </tr> <tr> <td>waitForElementClickable</td> <td>scLocator=//ToolStripButton[ID="searchBtn"]/icon</td> <td></td> </tr> <tr> <td>click</td> <td>scLocator=//ToolStripButton[ID="searchBtn"]/icon</td> <td></td> </tr> <tr> <td>waitForElementClickable</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=simvastatin%3A101||index=0||Class=TextItem]/element</td> <td></td> </tr> <tr> <td>type</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=simvastatin%3A101||index=0||Class=TextItem]/element</td> <td>simvastatin:101</td> </tr> <tr> <td>waitForElementReadyForKeyPresses</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=simvastatin%3A101||index=0||Class=TextItem]/element</td> <td></td> </tr> <tr> <td>sendKeys</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=simvastatin%3A101||index=0||Class=TextItem]/element</td> <td>${KEY_ENTER}</td> </tr> <tr> <td>waitForElementClickable</td> <td>scLocator=//ListGrid[ID="FeverchartSearchIncludingAlternativesResultGrid"]/body/row[medname=Simvastatin%20Rtp%20Ftbl%2020mg||add=add.png||1]/col[fieldName=add||5]</td> <td></td> </tr> <tr> <td>click</td> <td>scLocator=//ListGrid[ID="FeverchartSearchIncludingAlternativesResultGrid"]/body/row[medname=Simvastatin%20Rtp%20Ftbl%2020mg||add=add.png||1]/col[fieldName=add||5]</td> <td></td> </tr> <tr> <td>waitForElementClickable</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=voltaren%3A111||index=0||Class=TextItem]/element</td> <td></td> </tr> <tr> <td>type</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=voltaren%3A111||index=0||Class=TextItem]/element</td> <td>voltaren:111</td> </tr> <tr> <td>sendKeys</td> <td>scLocator=//Window[ID="FeverchartSearchIncludingAlternativesWindow"]/item[0][Class="VLayout"]/member[Class=HLayout||index=0||length=3||classIndex=0||classLength=3]/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]/item[name=searchTextItem||title=Suchtext||value=voltaren%3A111||index=0||Class=TextItem]/element</td> <td>${KEY_ENTER}</td> </tr> </tbody></table> </body> </html>
Comment