Hi
We are using smart gwt 5.1p and have an application based on that. We are in the process of introducing automation testing using selenium 2.5.3 as mentioned in (AutomatedTesting.html and UsingSelenium.html) . We are able to record the test case using selenium IDE but our main focus is using the web driver. By using scLocator and chrome driver implementation class from isomorphic I am trying to get the element but it is throwing element not found exception. Please note that all ID's are created automatically we didn't mention any ID while creating the screen. Can I able to get the element in this scenorio?
Trying to use the below code to get element. Please find the html for the page in the screenshot
By titleInput = ByScLocator.scLocator("//DynamicForm[ID="isc_I"]/item[name=username]/element");
SmartClientWebDriver chromeDrv = new SmartClientChromeDriver();
chromeDrv.type(titleInput, "Aa000000*");
output
org.openqa.selenium.NoSuchElementException: //DynamicForm[ID='isc_I']/item[name=username]/element
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Can we able to get the element like this using web driver? Or do we need to record it in selenium ide and call the SeleneseRunner class to execute it always.
We are using smart gwt 5.1p and have an application based on that. We are in the process of introducing automation testing using selenium 2.5.3 as mentioned in (AutomatedTesting.html and UsingSelenium.html) . We are able to record the test case using selenium IDE but our main focus is using the web driver. By using scLocator and chrome driver implementation class from isomorphic I am trying to get the element but it is throwing element not found exception. Please note that all ID's are created automatically we didn't mention any ID while creating the screen. Can I able to get the element in this scenorio?
Trying to use the below code to get element. Please find the html for the page in the screenshot
By titleInput = ByScLocator.scLocator("//DynamicForm[ID="isc_I"]/item[name=username]/element");
SmartClientWebDriver chromeDrv = new SmartClientChromeDriver();
chromeDrv.type(titleInput, "Aa000000*");
output
org.openqa.selenium.NoSuchElementException: //DynamicForm[ID='isc_I']/item[name=username]/element
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Can we able to get the element like this using web driver? Or do we need to record it in selenium ide and call the SeleneseRunner class to execute it always.
Comment