Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Pop-up
#3
Not Solved
Code:
oBrowser="name:="+st+".*"
    oPage="title:="+st
    Set oDesc = Description.Create()
    oDesc("micclass").Value = "WebEdit"
    Set oDesc1 = Description.Create()
    oDesc1("micclass").Value = "WebButton"
      'msgBox oBrowser
      'msgBox oPage
     set obj=Browser(oBrowser).Page(oPage).ChildObjects(oDesc)
     set obj1=Browser(oBrowser).Page(oPage).ChildObjects(oDesc1)
     set obj2=Browser(oBrowser).Page(oPage).Object.All.tags("input")
     set obj3=Browser(oBrowser).Page(oPage).Object.All.tags("TD")
     'Numberobj=obj2.Count()
      index=0
      For Each Element in obj3
        index = index + 1
        'Msgbox  Element.innerHTML 'Reading string between tags <td> of table
        'Msgbox  Element.maxlength
      Next

     'msgBox obj2.ToString()
     For i=0 to Numberobj-1
       'msgBox obj2(i).ToString()
     Next
     NumberOfEdits = obj.Count()
     NumberOfButton = obj1.Count()
     'msgbox NumberOfEdits
     Dim  A(20)
     Set fso = CreateObject("Scripting.FileSystemObject")
     For i = 0 To NumberOfEdits-1
        If (fso.FileExists("E:\TestData\Input.xls")) Then
          DataTable.Import "E:\TestData\Input.xls"
        End if
         datatable.getsheet(1)
         obj(i).Set datatable.value(datatable.GetSheet(1).GetParameter(i+1).Name,1)
          'msgBox obj(i).ToString()
     Next
     Wait(10)
     index=0
For Each Element in obj2
       Wait(2)
       If Element.Type="button" and Element.name="Send" then
         'msgbox Element.Type
         'msgbox Element.name

    obj2(index).Click
Data input.xsl

name address phone email title content
Test 234234 test@yahoo.com test test
Test1 Test1 345435 test@yahoo.com test test
Test Test 234236 test@yahoo.com test test

name was compelled data to have.
When i was submmited button "Send" then a popup dialog messager but i want continue test run. How I must resolve this Problem?
(10-02-2009, 02:05 PM)bebeo Wrote: oBrowser="name:="+st+".*"
oPage="title:="+st
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebEdit"
Set oDesc1 = Description.Create()
oDesc1("micclass").Value = "WebButton"
'msgBox oBrowser
'msgBox oPage
set obj=Browser(oBrowser).Page(oPage).ChildObjects(oDesc)
set obj1=Browser(oBrowser).Page(oPage).ChildObjects(oDesc1)
set obj2=Browser(oBrowser).Page(oPage).Object.All.tags("input")
set obj3=Browser(oBrowser).Page(oPage).Object.All.tags("TD")
'Numberobj=obj2.Count()
index=0
For Each Element in obj3
index = index + 1
'Msgbox Element.innerHTML 'Reading string between tags <td> of table
'Msgbox Element.maxlength
Next

'msgBox obj2.ToString()
For i=0 to Numberobj-1
'msgBox obj2(i).ToString()
Next
NumberOfEdits = obj.Count()
NumberOfButton = obj1.Count()
'msgbox NumberOfEdits
Dim A(20)
Set fso = CreateObject("Scripting.FileSystemObject")
For i = 0 To NumberOfEdits-1
If (fso.FileExists("E:\TestData\Input.xls")) Then
DataTable.Import "E:\TestData\Input.xls"
End if
datatable.getsheet(1)
obj(i).Set datatable.value(datatable.GetSheet(1).GetParameter(i+1).Name,1)
'msgBox obj(i).ToString()
Next
Wait(10)
index=0
For Each Element in obj2
Wait(2)
If Element.Type="button" and Element.name="Send" then
'msgbox Element.Type
'msgbox Element.name

obj2(index).Click

Data input.xsl

PHP Code:
name    address     phone      email                     title          content
Null        Test     234234  test
@yahoo.com   test        test
Test1     Test1      345435  test
@yahoo.com   test             test
Test     Test       234236  test
@yahoo.com   test      test 

name was compelled data to have.
When i was submmited button "Send" then a popup dialog messager but i want continue test run. How I must resolve this Problem?
Reply


Messages In This Thread
Problem Pop-up - by bebeo - 10-02-2009, 09:26 AM
RE: Problem Pop-up - by Saket - 10-02-2009, 11:28 AM
RE: Problem Pop-up - by bebeo - 10-02-2009, 02:05 PM
RE: Problem Pop-up - by basanth27 - 10-04-2009, 11:02 AM
RE: Problem Pop-up - by Saket - 10-03-2009, 10:51 AM
RE: Problem Pop-up - by bebeo - 10-05-2009, 07:01 AM
RE: Problem Pop-up - by basanth27 - 10-05-2009, 12:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,535 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,890 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,366 07-09-2014, 10:43 PM
Last Post: hhamilton
  select a date from pop-up calendar Dertjon 1 5,765 05-13-2014, 02:29 PM
Last Post: Ankur
  QTP not clicking on Yes button in the IE pop up dialog adityasrinivasb 2 9,632 09-29-2013, 11:01 PM
Last Post: prashantrawat101@gmail.com

Forum Jump:


Users browsing this thread: 2 Guest(s)