Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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/
avatar
rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 31
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


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