Both Google Chrome and FF HTML scripts are same. it works perfectly fine in Google Chrome and fails in FF.
On Thursday, May 17, 2012 3:27:30 PM UTC+5:30, Srinivas wrote: > > I tried this all possible scenarios in both IRB and as well as script. But > it doesn't work in both ways. > > On Thursday, May 17, 2012 12:03:52 AM UTC+5:30, Chuck van der Linden wrote: >> >> On Tuesday, May 15, 2012 11:38:38 PM UTC-7, Srinivas wrote: >>> >>> Hi cassiano, >>> >>> Thanks for your response. >>> >>> I tried sleep 10 command before click command and I am getting the same >>> result.( No action is performed). >>> >>> Do you have any other suggestions? >>> >>> Is this from IRB? for some strange reason (I think it may have to do >> with focus on the app vs the command line window) I've seen that fail in >> IRB and require executing the command a second time, but it usually worked >> for me in scripts >> >> Also is there any chance that different website code is being sent out if >> FF is detected as the browser? Are you sure that the HTML is the same? >> >> >>> >>> Thanks >>> SaroSini >>> >>> On Tuesday, May 15, 2012 6:10:11 PM UTC+5:30, Srinivas wrote: >>>> >>>> I tried to click an div tag element using its class name in Firefox >>>> browser and it was not triggered. >>>> >>>> The command i used is: br.div(:class, "upload").click, actually it >>>> executes the statement, but action was not happened and I have also >>>> not getting any error as well. >>>> >>>> I have also tried the following commands to locate the same object and >>>> I am succeed as well: >>>> >>>> br.div(:class, "upload").flash >>>> >>>> br.div(:class, "upload").present? >>>> >>>> Note: This problem happens only in Firefox, whereas in Google Chrome >>>> same code working fine. >>>> >>>> could anyone help me on this regard? >>>> >>>> Thanks Sarosini >>> >>> >>> On Tuesday, May 15, 2012 6:10:11 PM UTC+5:30, Srinivas wrote: >>>> >>>> I tried to click an div tag element using its class name in Firefox >>>> browser and it was not triggered. >>>> >>>> The command i used is: br.div(:class, "upload").click, actually it >>>> executes the statement, but action was not happened and I have also >>>> not getting any error as well. >>>> >>>> I have also tried the following commands to locate the same object and >>>> I am succeed as well: >>>> >>>> br.div(:class, "upload").flash >>>> >>>> br.div(:class, "upload").present? >>>> >>>> Note: This problem happens only in Firefox, whereas in Google Chrome >>>> same code working fine. >>>> >>>> could anyone help me on this regard? >>>> >>>> Thanks Sarosini >>> >>> >>> On Tuesday, May 15, 2012 6:10:11 PM UTC+5:30, Srinivas wrote: >>>> >>>> I tried to click an div tag element using its class name in Firefox >>>> browser and it was not triggered. >>>> >>>> The command i used is: br.div(:class, "upload").click, actually it >>>> executes the statement, but action was not happened and I have also >>>> not getting any error as well. >>>> >>>> I have also tried the following commands to locate the same object and >>>> I am succeed as well: >>>> >>>> br.div(:class, "upload").flash >>>> >>>> br.div(:class, "upload").present? >>>> >>>> Note: This problem happens only in Firefox, whereas in Google Chrome >>>> same code working fine. >>>> >>>> could anyone help me on this regard? >>>> >>>> Thanks Sarosini >>> >>> >>> On Tuesday, May 15, 2012 6:10:11 PM UTC+5:30, Srinivas wrote: >>>> >>>> I tried to click an div tag element using its class name in Firefox >>>> browser and it was not triggered. >>>> >>>> The command i used is: br.div(:class, "upload").click, actually it >>>> executes the statement, but action was not happened and I have also >>>> not getting any error as well. >>>> >>>> I have also tried the following commands to locate the same object and >>>> I am succeed as well: >>>> >>>> br.div(:class, "upload").flash >>>> >>>> br.div(:class, "upload").present? >>>> >>>> Note: This problem happens only in Firefox, whereas in Google Chrome >>>> same code working fine. >>>> >>>> could anyone help me on this regard? >>>> >>>> Thanks Sarosini >>> >>> >>> On Tuesday, May 15, 2012 6:10:11 PM UTC+5:30, Srinivas wrote: >>>> >>>> I tried to click an div tag element using its class name in Firefox >>>> browser and it was not triggered. >>>> >>>> The command i used is: br.div(:class, "upload").click, actually it >>>> executes the statement, but action was not happened and I have also >>>> not getting any error as well. >>>> >>>> I have also tried the following commands to locate the same object and >>>> I am succeed as well: >>>> >>>> br.div(:class, "upload").flash >>>> >>>> br.div(:class, "upload").present? >>>> >>>> Note: This problem happens only in Firefox, whereas in Google Chrome >>>> same code working fine. >>>> >>>> could anyone help me on this regard? >>>> >>>> Thanks Sarosini >>> >>> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
