Hi Wajahatan,
                    Your problem has been solved, now you can continue your
work with this code....and sorry for late respond bcz i was little bussy in
my scheduled office work.

Dim bro,url,i
bro="iexplore"
url="http://www.cadillac.com/2013-cts-v-sport-coupe.html";
systemutil.Run bro,url
'page.sync
wait 10

if  i=0 then
Set mypage=browser("title:=.*").page("title:=.*")
mypage.Sync
    if  mypage.WebElement("html id:=share","index:=0").Exist Then
     wait 3
    mypage.WebElement("html id:=share","index:=0").highlight
    mypage.WebElement("html id:=share","index:=0").click
 mypage.Webelement("html id:=share__facebook","index:=1").Click
  wait 5

Set mypage1=browser("title:=Facebook").page("title:=Facebook")
Set desc=description.create
 desc("micclass").value="WebElement"
 desc("class").value="clearfix"
 set obj=mypage1.childobjects(desc)
msgbox obj.count
'obj(0).click


'  mypage1.Link("name:=Send","index:="&i).getroproperty("innertext")
'  mypage1.Link("name:=Send","index:="&i).click


end if
If mypage1.Exist Then
mypage1.WebEdit("class:=inputtext","name:=email").Set"anyuserid"
    mypage1.WebEdit("class:=inputpassword","name:=pass").Set"anypassword"
mypage1.WebButton("html id:=u_0_1","name:=Log In").Click
End If

i=i+1
wait 3
Set mypage3=browser("title:=Facebook").page("title:=Facebook")
If mypage3.Exist(2) Then
   msgbox mypage3.WebElement("class:=_b--").GetROProperty("innertext")
   Set desc=description.Create
   desc("micclass").value="WebElement"
   desc("class").value="uiButton uiButtonConfirm uiButtonLarge"
   set obj=mypage3.childobjects(desc)
  obj(0).Click
End If
msgbox "WoW...Link shared successfully"
else
End If


Thanks
Akhalesh



On Tue, Jul 23, 2013 at 6:02 PM, lifegoeasy.blogspot.in <
[email protected]> wrote:

> User creation time property of browser example - Browser(“creationtime:=0“)
>
> Cheers,
> lifegoeasy.blogspot.in
>
>
>
> On Wednesday, July 17, 2013 8:30:54 PM UTC+5:30, [email protected]:
>>
>> I am working on an application which has facebook interface button to
>> share a story.
>>  When i click on a button it brings popup window of facebook login page.
>> has browser & page title(FACEBOOK)
>> when i enter user name and password and login to the site
>>  the next wall popup window displays has browser & page title(FACEBOOK)
>> this wall popup page and login popup page have same page & browser title.
>> What should i do to identify them as two different pages ?
>>
>  --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Akhalesh yadav
+919555717928
+919310680659

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to