Issues using modal panel

29 views
Skip to first unread message

Luiz Gustavo Schroeder Vieira

unread,
Sep 9, 2011, 6:29:31 PM9/9/11
to selenium-...@googlegroups.com

Hi guys,


I am getting an error message that says the fields does not exist.

I could map the field using:
WebElement modalPanel = driver.findElement(By.id("corpo:formulario:painelGenericoContainer"));
WebElement dsArquivo = modalPanel.findElement(By.xpath("//*[@id='corpo:formulario:dsArquivo']"));

But I could not sendKeys using:
dsArquivo.sendKeys("testing");

It displays the following error message:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//*[@id='corpo:formulario:despachanteText']"}
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.5.0', revision: '13516', time: '2011-08-23 18:30:44'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_27'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:409)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:191)
at org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:114)
at org.openqa.selenium.remote.RemoteWebElement.findElementByXPath(RemoteWebElement.java:167)
at org.openqa.selenium.By$ByXPath.findElement(By.java:350)
at org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:110)
at org.openqa.selenium.example.Script_003.runTest003(Script_003.java:63)
at org.openqa.selenium.example.Script_003.main(Script_003.java:115)

Can you help me?

--
Atenciosamente,
Luiz Gustavo Schroeder Vieira, FCE, CTAL-TA
Consultor de Testes
BSTQB TAG Member
+55 (48) 9994-3569
Skype: luizgsvieira
luizgustavo@LUGATI.com.br
http://testavo.blogspot.com
http://www.LUGATI.com.br
Reply all
Reply to author
Forward
0 new messages