04-06-2009, 07:57 PM
Okei, now am getting the output value in the runtime datatable as attached.
The challenges now are:
- How do I make sure that this id exists in the WebTable for example?
- Whenever a new survey is created, a new edit and delete buttons are created also. Each has a link with the id inside. How do I make sure that it is clicking the right delete button for example? Right now it is clicking delete on a certain row only. Here is my crappy code from a crappy script writer
'Adding survey here
'Taking output value
'Deleting the survey, of course the wrong one!
The challenges now are:
- How do I make sure that this id exists in the WebTable for example?
- Whenever a new survey is created, a new edit and delete buttons are created also. Each has a link with the id inside. How do I make sure that it is clicking the right delete button for example? Right now it is clicking delete on a certain row only. Here is my crappy code from a crappy script writer
'Adding survey here
Code:
Browser("Web Single Sign On").Page("ad1Domain").Link("Quick Surveys").Click
Browser("Web Single Sign On").Page("ad1Domain_2").Link("Create new survey").Click
Browser("Web Single Sign On").Page("ad1Domain_3").WebEdit("T2200210021164289598977{action").Set "13.09.2009"
Browser("Web Single Sign On").Page("ad1Domain_3").WebEdit("T2200210021164289598977{action_2").Set "13.09.2011"
Browser("Web Single Sign On").Page("ad1Domain_3").WebEdit("T2200210021164289598977{action_3").Set "Automator"
Browser("Web Single Sign On").Page("ad1Domain_3").WebEdit("T2200210021164289598977{action_4").Set "Automation?"
Browser("Web Single Sign On").Page("ad1Domain_3").Link("ADD SURVEY").Click
Code:
Browser("Web Single Sign On").Page("ad1Domain_4").WebElement("222").Output CheckPoint("222")
Browser("Web Single Sign On").Page("ad1Domain_4").Check CheckPoint("ad1Domain")
Browser("Web Single Sign On").Page("ad1Domain_4").Link("Back to main").Click
Code:
Browser("Web Single Sign On").Page("ad1Domain_5").WebElement("DELETE").Check CheckPoint("DELETE")
Browser("Web Single Sign On").Page("ad1Domain_5").Link("DELETE").Click
Browser("Web Single Sign On").Dialog("Microsoft Internet Explorer").Activate
Browser("Web Single Sign On").Dialog("Microsoft Internet Explorer").Check CheckPoint("Microsoft Internet Explorer")
Browser("Web Single Sign On").Dialog("Microsoft Internet Explorer").WinButton("OK").Click