Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c


ide can run, but rc cannot

View previous topic View next topic Go down

ide can run, but rc cannot

Post by freesky 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!


Posts : 72
Join date : 2011-04-13

Back to top Go down

Re: ide can run, but rc cannot

Post by rohit13 on Mon Jul 23, 2012 6:33 pm

Please share HTML for those element

Radical QA


Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

Back to top Go down

Re: ide can run, but rc cannot

Post by freesky on Tue Jul 24, 2012 9:42 am

html source looks like next :
<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=""                             xmlns:i="...."xmlns:e="...."    xmlns:b="..." xmlns:t="..." xmlns:c="..." xmlns="...">
            <body style="overflow:hidden;">
                    <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 class="btl-stretch" style="overflow:auto;height:569px;">
                                            <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">
                                                                    <tr class="btl-chameleon-highlightBackground btl-chameleon-highlightText btl-grid-row-selected btl-grid-row-focused" rowid="1">


Posts : 72
Join date : 2011-04-13

Back to top Go down

Re: ide can run, but rc cannot

Post by Sponsored content

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

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