History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-241
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Mike
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

confusing documentation on getAttributeFromAllWindows

Created: 12/Apr/07 04:57 PM   Updated: 12/Aug/08 05:35 PM
Component/s: Documentation
Affects Version/s: 0.9.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: windows xp, firefox 1.5.0.11


 Description  « Hide
had one parent window and one pop up.
have an id/attribute 'id=submitButton2@value' on both windows

did a selenium.getAttributeFromAllWindows( "id=submitButton2@value"); and threw exception:

Server window:

---------------------

Got result: ERROR: Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window. The error message is: missing ; before statement on session 342950

GET: cmd=getAttributeFromAllWindows&1=id%3DsubmitButton2%40value&sessionId=342950

Browser 342950/:top sel_75267 posted ERROR: Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window. The error message is: missing ; before statement

req: null:POST http://joe.somplace.com/selenium-server/core/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_75267&sessionId=342950&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1176413347762 HTTP/1.1Host: joe.somplace.com

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=.9,text/plain;q=.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

keep-alive: 300

Proxy-Connection: keep-alive

Content-Length: 156

Content-Type: application/xml

Pragma: no-cache

Cache-Control: no-cache



Got result: ERROR: Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window. The error message is: missing ; before statement on session 342950

GET: cmd=testComplete&sessionId=342950

Killing Firefox...

Got result: OK on session 342950





Front end exception

-----------------------------

Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window. The error message is: missing ; before statement

at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73)

at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:150)

at com.thoughtworks.selenium.HttpCommandProcessor.getStringArray(HttpCommandProcessor.java:159)

at com.thoughtworks.selenium.DefaultSelenium.getAttributeFromAllWindows(DefaultSelenium.java:394)

... 17 more


 All   Comments   Work Log   Change History      Sort Order:
Dan Fabulich - 04/Jul/07 02:46 AM
That's not how getAttributeFromAllWindows is supposed to work. It's really reading a single JS property from the window object itself; it's not reading an element attribute from any windows at all. We should update the documentation on getAttributeFromAllWindows to explain this more clearly.