Ok on the folder page if you select a video via a checkbox select and click the move option this is being invoked:
<li> <span class="tiny_dot"> </span> <a onfocus="if(this.blur)this.blur();" onclick="MOBX.Modal.show('move', { folder_id: 706027, verbose: true}); return false;" href="#">Move</a> </li> This opens the modal window with the following code: <div class="motionbox_content" id="modal_dialog_1265738543319_content" style="overflow: auto; height: 400px; width: 700px;"><div class="motionbox_message" id="modal_dialog_message"><div class="modal_header"> <div class="modal_header_buttons"> <a href="javascript:MOBX.Folders.restoreStateAndCloseWindows()" class="button tool tool_button cancel"> <span class="left"> </span> <span class="button"> Cancel </span> <span class="right"> </span> </a> </div> <h3> Move Video(s) </h3> <p> Move selected video(s) to another folder. (1 videos selected) </p> </div> <div class="modal_contents"> <form onsubmit="if($F('destination_folder') < 2){return false;}" method="post" id="modal_form" action="/filings/move"> <fieldset> <label class="select_field" for="destination_folder">Move to an existing folder:</label> <select name="destination_folder" id="destination_folder"> <option value="">Choose a folder...</option> <option value=""> </option> <option value="706025">My First Folder 02/05/10</option> </select> <input type="hidden" value="1" name="filings[576839]" id="filings[576839]"> <input type="hidden" value="706027" name="current_folder_id" id="current_folder_id"> <div class="submit"> <button value="" type="submit" name="submit_button" class="tool tool_button move_button"> <span class="left"> </span> <span class="button"> Move </span> <span class="right"> </span> </button> <a onclick="MOBX.Folders.restoreStateAndCloseWindows(); return false;" href="#" class="block">Cancel and close this window.</a> </div> </fieldset> </form> <div id="errors"></div> <form onsubmit="new Ajax.Request('/folders', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;" method="post" id="create_folder" action="/folders"> <div class="item"><label for="folder_name" class=" text_field">Or, move to a new folder:</label><input type="text" size="30" name="folder[name]" id="folder_name" class="text_field"></div> <div class="submit"> <button value="" type="submit" name="submit_button" class="tool tool_button create_and_move_button"> <span class="left"> </span> <span class="button"> Create and Move </span> <span class="right"> </span> </button> <a onclick="MOBX.Folders.restoreStateAndCloseWindows(); return false;" href="#" class="block">Cancel and close this window.</a> </div> <input type="hidden" value="1" name="filings[576839]" id="filings[576839]"> </form></div> </div></div> I'm trying to enter a value to create a new folder to move the video to and then clicking the submit button to execute. In Safariwatir, the value is entered into the text filed but the submit button is simply highlighted in yellow and not followed. When using firewatir I cannot get any data entered into the text field due to the issue explained above in this thread. Does this help clarify this issue? Thanks On Feb 5, 11:33 pm, Yuping Zhong <littlezhong...@gmail.com> wrote: > Hi, > > Can you give more info that how to go to the folder page? > > Right now,I don't know how to flow to that page. > > Thanks! > > -Zhong > > On Fri, Feb 5, 2010 at 11:35 PM, QAguy <qablogm...@gmail.com> wrote: > > Yes.www.motionbox.com > > > Modals are on the folder pages. > > > On Feb 5, 3:08 am, Angrez Singh <ang...@gmail.com> wrote: > > > Is it something that we can see online? I mean is there a website on > > which > > > you are testing? > > > > On Fri, Feb 5, 2010 at 3:30 AM, QAguy <qablogm...@gmail.com> wrote: > > > > The first on didn't work. I tried the second one you provided: > > > > > browser.div(:for, > > > > "folder_name").text_field(:id,"folder_name").set("Watir test folder") > > > > > and I got this error: > > > > > JsshSocket::JSSyntaxError in 'Check folder page menu options and > > > > modals should allow the user move the video to a newly created folder' > > > > missing ; before statement > > > > > I also tried > > > > > browser.div(:class, "item").text_field(:id,"folder_name").set("Watir > > > > test folder") > > > > > and got the same error. > > > > > Here is the div code: > > > > > <div class="item"><label for="folder_name" class=" text_field">Or, > > > > move to a new folder:</label><input type="text" size="30" > > > > name="folder[name]" id="folder_name" class="text_field"></div> > > > > > Does anyone know what this error is? > > > > > Thanks > > > > > On Feb 2, 4:56 pm, Super Kevy <kpe...@scholarshipamerica.org> wrote: > > > > > try > > > > > > > browser.text_field(:for, "folder_name").set('Watir test folder') > > > > > > or you may need to set the div element in the object: > > > > > > browser.div(:id,"whateveritis").text_field(:id,"folder_name).set > > > > > ("Watir test folder") > > > > > > On Feb 2, 10:29 am,QAguy<qablogm...@gmail.com> wrote: > > > > > > > I am trying to enter data into a modal window from my site. Here is > > > > > > the site code: > > > > > > > <label class=" text_field" for="folder_name">Or, move to a new > > > > > > folder:</label><input class="text_field" id="folder_name" > > name="folder > > > > > > [name]" size="30" type="text"> > > > > > > > To enter data into the text_field I do: > > > > > > > browser.text_field(:id, "folder_name").set('Watir test folder') > > > > > > > This works fine in safariwatir but in firewatir I get the following > > > > > > error: > > > > > > > Unable to locate element, using :id, "folder_name" > > > > > > > Does anyone know what would cause this? Is it because this is a > > site > > > > > > modal? > > > > > > > Thanks in advance. > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Watir General" group. > > > > To post to this group, send email to watir-general@googlegroups.com > > > > Before posting, please read the following guidelines: > > > >http://wiki.openqa.org/display/WTR/Support > > > > To unsubscribe from this group, send email to > > > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > > <watir-general%2bunsubscr...@googlegroups.com<watir-general%252bunsubscr...@googlegroups.com> > > > > > For more options, visit this group at > > > >http://groups.google.com/group/watir-general > > > -- > > You received this message because you are subscribed to the Google Groups > > "Watir General" group. > > To post to this group, send email to watir-general@googlegroups.com > > Before posting, please read the following guidelines: > >http://wiki.openqa.org/display/WTR/Support > > To unsubscribe from this group, send email to > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general