Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

ide can run, but rc cannot Empty ide can run, but rc cannot

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!
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 38
Location : INDIA
http://radical-qa.blogspot.in/

ide can run, but rc cannot Empty Re: ide can run, but rc cannot

Mon Jul 23, 2012 6:33 pm
Please share HTML for those element
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

ide can run, but rc cannot Empty Re: ide can run, but rc cannot

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

ide can run, but rc cannot Empty Re: ide can run, but rc cannot

Back to top
Permissions in this forum:
You cannot reply to topics in this forum