Results 1 to 3 of 3

Thread: Error:

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Answers
    25

    Exclamation Error:

    Hi all,

    I am facing this error every time,
    "Cannot identify the object "[ WebButton ]" (of class WebButton). Verify that this object's properties match an object currently displayed in your application.

    Line (25): "Browser(strbrowser).Page(strBrowser).WebButton("name:=yyy").Click".
    "
    so can any one say me what is the reason behind this. Not only for webButton also webElement & webCheckBox i am getting same error like " cannot identify the object."

    MY CODE:

    strBrowser="title:=xxx"
    Browser(strBrowser).Page(strBrowser).WebCheckBox("name:=zzz","html tag:=INPUT","type:=checkbox").Set "ON"
    Browser(strbrowser).Page(strBrowser).WebButton("name:=yyy").Click

    Thanks in advance. Please help me, its urgent.

    Regards,
    Preetha.

    Last edited by Bala Preetha; 01-09-2011 at 10:29 PM.

  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Error:

    Hi Preetha,

    Please pass appropriate value for page and let me know the results...


    Quote Originally Posted by Bala Preetha View Post
    Hi all,

    I am facing this error every time,
    "Cannot identify the object "[ WebButton ]" (of class WebButton). Verify that this object's properties match an object currently displayed in your application.

    Line (25): "Browser(strbrowser).Page(strBrowser).WebButton("name:=yyy").Click".
    "
    so can any one say me what is the reason behind this. Not only for webButton also webElement & webCheckBox i am getting same error like " cannot identify the object."

    MY CODE:

    strBrowser="title:=xxx"
    Browser(strBrowser).Page(strBrowser).WebCheckBox("name:=zzz","html tag:=INPUT","type:=checkbox").Set "ON"
    Browser(strbrowser).Page(strBrowser).WebButton("name:=yyy").Click

    Thanks in advance. Please help me, its urgent.

    Regards,
    Preetha.


    Arise Awake And Stop Not Till The Goal Is Reached

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Answers
    25

    Re: Error:

    Hi deepasree,

    Page and browser got same value tats why i used same obj for browser and value. In this script i used local datatable for 6 iteration but 1st 3 iteration is working fine. remaining it shows above mentioned error. script is,

    strBrowser="micClass:=Browser"
    strPage="micClass:=Page"
    wait(2)
    Browser(strBrowser).Page(strPage).WebButton("name:=Search","html id:=xxx").Click
    wait(2)
    Browser(strBrowser).Page(strPage).WebEdit("name:=yyy").Set DataTable.Value("A",dtLocalSheet)
    Browser(strBrowser).Page(strPage).WebEdit("name:=zzz").Set "aaa"
    Browser(strBrowser).Page(strPage).WebEdit("name:=fff").Set "bbb"
    Browser(strBrowser).Page(strPage).WebEdit("name:=vvv").Set "ccc"
    Browser(strBrowser).Page(strPage).WebButton("name:=Search","html id:=rrr").Click
    wait(3)

    please say what changes do i need to make in my script. its urgent

    Thanks,
    Preetha.


  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact