Re: [Selenium-users] document object in user-extensions.js

2005-10-17 Thread vernon viles
How happy was I to see your email today? VERY! Thanks works great. --- Mike Williams <[EMAIL PROTECTED]> wrote: > vernon viles wrote: > > > How do I access the javascript "document" object > for > > the current page in the user extensions file. > > Replace your > > document.getElementBy

RE: [Selenium-users] Select and Close "PDF" Popup Window

2005-10-17 Thread Guillaume Boudreau
selectWindow needs to receive the window ID, not the window name. The window ID is the value returned by window.open() Example Javascript: function OpenPopup() { // Noticed I removed 'var' here, to make the 'MyWinID' variable global. MyWinID = window.open("/documentations/some.pdf", "Some

RE: [Selenium-users] links

2005-10-17 Thread Guillaume Boudreau
Excerpt from Reference.html: Without a locator prefix, Selenium uses: * dom, for locators starting with "document." * xpath, for locators starting with "//" * identifier, otherwise This means that: xpath=//td[text()='Problems'] is the same thing as: //td[text()='Problems']

RE: [Selenium-users] links

2005-10-17 Thread Chen, Shu-Dan
I'm sorry. I am still new at this. It didn't work for me. I've even changed it to this to see if it made any difference: click xpath=//[EMAIL PROTECTED]()='Problems'] Could you please explain why you did the following? Thanks a lot! -Original Message- From: [EMAIL PROTECTED] [mailto:[E

[Selenium-users] Select and Close "PDF" Popup Window

2005-10-17 Thread Nikko
Hi All, At first I want to say that ‘Selenium’ is a grateful program for automatic testing. Thanks for developers. But I have one problem. There are many links in the testing site, which loads PDF document in new window(see script below). So in Selenium I use the following command: selectWi

RE: [Selenium-users] selenium failure

2005-10-17 Thread Guillaume Boudreau
Have you tried:   | click | //a[id='Header1_Skiing_link'] | |   or simply   | click | link=ski | |   ?   - Guillaume Boudreau From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terry SimpsonSent: Monday, October 17, 2005 6:41 AMTo: selenium-users@lists.public.thoughtworks

RE: [Selenium-users] Using variables for open command's url

2005-10-17 Thread Guillaume Boudreau
Ah, my bad... Monday morning usually helps! My problem was that my store baseURL was the 1st row of my (included) file's table, and thus was not parsed... Added a title-row to my table fixed my problem!   - Guillaume Boudreau From: David Kemp [mailto:[EMAIL PROTECTED] Sent: Saturday, Oct

Re: [Selenium-users] document object in user-extensions.js

2005-10-17 Thread Mike Williams
vernon viles wrote: How do I access the javascript "document" object for the current page in the user extensions file. Replace your document.getElementById('footable') with this.page().currentDocument.getElementById('footable') Alternatively, you could use Selenium's locat

[Selenium-users] selenium failure

2005-10-17 Thread Terry Simpson
Hi. Hope someone can help. I am new to software testing and exploring the features in Selenium 0.6.0.   I’m trying to get the fireEvent action to open a new page on a website using an onclick function but Selenium is telling me there is a failure.   The message in the log console is li

[Selenium-users] document object in user-extensions.js

2005-10-17 Thread vernon viles
How do I access the javascript "document" object for the current page in the user extensions file. e.g. I have defined a new function that makes use of code such as: if(document.getElementById('footable') { tabletds=document.getElementById('footable').getElementsByTagName('td'); ... } else {