Share
View previous topicGo downView next topic
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

ide can run, but rc cannot

on Mon Jul 23, 2012 5:24 pm
environment : win7, firefox 13.0.1, selenium-java-2.24.1.jar, selenium-server-standalone-2.24.1.jar

my script looks like next table :

pen /test
waitForText //div[@id='Message']/div[3]/table/tbody/tr[1] Successful
doubleClickAt //div[@id='tree']//span[text()='Template']
waitForElementPresent //div[@id='to']/div[3]/table/tbody/tr[1]
clickAt //div[@id='to']/div[3]/table/tbody/tr[1]
clickAt //div[@id='to']/div[3]/table/tbody/tr[1]
waitForElementPresent //div[@id='to']/div[3]/table/tbody//tr[1]//td[@fieldname='name']//input[@type='text']
type //div[@id='to']/div[3]/table/tbody//tr[1]//td[@fieldname='name']//input[@type='text'] A
waitForElementPresent //div[@id='to']/div[3]/table/tbody//tr[1]//td[@fieldname='*[10]']//input[@type='button']
click //div[@id='to']/div[3]/table/tbody//tr[1]//td[@fieldname='*[10]']//input[@type='button']
waitForElementPresent //div[@id='result']/div[3]/table/tbody/tr[1]
doubleClickAt //div[@id='result']/div[3]/table/tbody/tr[1]
waitForElementPresent id=newForm
clickAt id=newForm
pause 4000
waitForElementPresent //div[@id='to']/div[3]/table/tbody/tr[1]
clickAt //div[@id='to']/div[3]/table/tbody/tr[1]
clickAt //div[@id='to']/div[3]/table/tbody/tr[1]
generally it contains next 4 steps :
1. make the backbase form editable
2. type value in an input box, then query the database according to the value, then select one record from result winow
3. create a new form(make the form to become browse mode - non editable)
4. make the form editable again

i need to use "clickAt //div[@id='to']/div[3]/table/tbody/tr[1]
and clickAt //div[@id='to']/div[3]/table/tbody/tr[1]" to make backbase form become editable.

this script can be run in selenium ide(1.8.1), and when run in selenium rc, the step 1 is right, it can make the form editable

but step 4 cannot make the form editable, it just focus this form, why?

thanks for your replies!
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: ide can run, but rc cannot

on Mon Jul 23, 2012 6:33 pm
Please share HTML for those element

_________________
Radical QA
http://radical-qa.blogspot.in/
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Re: ide can run, but rc cannot

on Tue Jul 24, 2012 9:42 am
html source looks like next :
Code:
<div id="windowArea" class="show">
    <iframe width="100%" height="100%" src="http://localhost:8080/at/index.html">
        <html class="js gecko gecko13 BackCompat Win32"  xmlns:xi="http://www.w3.org/2001/XInclude"                             xmlns:i="...."xmlns:e="...."    xmlns:b="..." xmlns:t="..." xmlns:c="..." xmlns="...">
            <head>
            <body style="overflow:hidden;">
                <div>
                    <div id="main_body">
                        <div class="btl-taskBar btl-bevel-top-bottom btl-taskBar-horizontal">
                        <div id="AppMenuBar" class="btl-menuBar btl-bevel-top-bottom">
                        <div id="appWindowArea" class="btl-windowArea btl-windowArea-with-taskBar" style="height:92%;">
                                <div class="btl-windowArea-content">
                                      <div></div>
                                      <div class="btl-stretch" style="overflow:auto;height:569px;">
                                      <div>
                                            <div id="to" class="btl-listGrid btl-grid-blurred btl-grid-columnHeaders-hidden
          btl-grid-columnFillers-hidden" onactivate="btl.listGrid._handleActivation(this.controller,window.event);" style="-moz-user-select:none;cursor:pointer;display:block;">
                                                  <input class="btl-invisibleFocusInput btl-listGrid-focusElement" readonly="readonly" onbeforedeactivate="return btl.listGrid._handleDeactivation(this.parentNode.controller, window.event);">
                                                    <div class="btl-grid-head btl-head" style="display:none">
                                                    <div class="btl-grid-topRightFiller btl-head btl-label btl-vevel" style="width:0px;" />
                                                    <div class="btl-grid-dataViewContainer" onscroll="bb.getControllerFromView(this).setScrollPosition(this.scrollLeft, this.scrollTop);" tabindex="-1">
                                                        <table cellspacing="0" cellpadding="0" border="0">
                                                              <colgroup>
                                                              <tbody>
                                                                    <tr class="btl-chameleon-highlightBackground btl-chameleon-highlightText btl-grid-row-selected btl-grid-row-focused" rowid="1">
Sponsored content

Re: ide can run, but rc cannot

View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum