Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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!

freesky
Amateur
Amateur

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
http://radical-qa.blogspot.in/

rohit13
Master
Master

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

http://radical-qa.blogspot.in/

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 :
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">

freesky
Amateur
Amateur

Posts : 72
Join date : 2011-04-13

Back to top Go down

Re: ide can run, but rc cannot

Post by Sponsored content Today at 8:12 am


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