Link : http://techbeacon.com/driving-devops-where-should-leadership-begin
Browser : Firefox
'<---------------------------------Opening Techbeacon and selecting the
article to comment------------------------------------------>
Browser("Title:=TechBeacon.*").Page("Title:=TechBeacon.*").Link("url:=.*agile",
"index:=1").Click
Wait 2
Browser("Title:=.*TechBeacon").Page("Title:=.*TechBeacon").Link("xpath:=//div[@id='block-system-main']/div/div/div[2]/div[2]/div/div[2]/div[2]/div/div/h2/a",
"Index:=1").Click
'<-----------------------------------------------------------------Comment-------------------------------------------------------------------->
*------------Scrolling down to the comment feature*
Set CommentPage = Browser("openurl:=.*techbeacon.*").Page(
"url:=.*techbeacon.*")
With CommentPage
.Webelement("class:=fyre-user-loggedout").Click
End With
Set LivefyrePage = Browser("name:=Livefyre.*").Page("url:=.*livefyre.*")
With LivefyrePage
.WebButton("name:=Create an Account").Click
Wait 2
.WebEdit("html id:=id_username").Set GenerateRandomString(8)
.WebEdit("html id:=id_password").SetSecure
"55bf1ec85289e3bed58a67f46bf0ee6c2d597319e6dd1268"
.WebEdit("html id:=id_email").Set "[email protected]"
.WebButton("name:=Next").Click
.WebEdit("html id:=id_first_name").Set "Saumil"
.WebEdit("html id:=id_last_name").Set "Jain"
.WebEdit("html id:=id_website").Set "www.google.com"
.WebButton("name:=Finish").Click
Wait 5
End With
Set TextBoxPage = Browser("openurl:=.*techbeacon.*").Page(
"url:=.*techbeacon.*")
With TextBoxPage
*.WebElement("html id:=fyre-editor.*", "index:=0")*
*.Object.innerText = "testing"*
Wait 5
.WebElement("innerhtml:=Post comment", "index:=0").Click
Wait 2
.WebElement("title:=Delete", "index:=0").Click
.WebElement("class:=fyre-user-drop", "index:=0").FireEvent "onmouseover"
End With
- *I am trying to enter text in the text box. The text box is a
WebElement, I follow the above script the test does not fail but it does
not insert any text in ghe text box. Any help will be really appreciated*
*Thanks,*
*Saumil*
--
--
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/d/optout.