You have 3 Dialog Box on desktop window and u want to click on
yes button on 3rd Dialog box how to write the script to click
on yes by DP? Note Dialog box names are same



You have 3 Dialog Box on desktop window and u want to click on yes button on 3rd Dialog box how to..

Answer / reddeth

"WinObjHierarchy"Dialog
("title:=SomeTitle","Index:=3).Winbutton("name:=Yes")

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

Hi, Below is the code that i ran on selenium RC using eclipse IDE and java coding.: package source; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; import com.thoughtworks.selenium.*; public class parameterized extends SeleneseTestCase { private Selenium browser; public static void main(String []args) { String arr[] = new String[5]; arr[0]= "bert"; arr[1]= "regular"; arr[2]= "copyonly"; arr[3]= "doert"; arr[4]= "inter"; parameterized obj = new parameterized(); obj.setUp(); obj.login_parameterize(arr); } @BeforeSuite public void setUp() { browser = new DefaultSelenium("localhost",4444, "*chrome", "http://goolge.com"); browser.start(); browser.open("http://goolge.com"); browser.waitForPageToLoad("30000"); browser.windowMaximize(); browser.open("/"); browser.click("gb_23"); } @Test public void login_parameterize(String[] arr ) { for(int i=0;i<=5;i++) { for(int j=0;j<=2; j++) { browser.type("//input[@id='Email']", arr[i]); browser.type("//input[@id='Passwd']", arr[i]); browser.click("//input[@id='signIn']"); browser.waitForPageToLoad("30000"); } } } public void EnterValuesIntoTextField_CheckWithGetValue() throws Exception { selenium.open("http://www.essaywriter.co.uk"); assertEquals("", selenium.getValue("id=textInput")); selenium.type("id=textInput", "Text In The Field"); assertEquals("Text In The Field", selenium.getValue("id=textInput")); } } When i ran this test i got an error which says: "Method login_parameterize requires 1 parameters but 0 were supplied in the @Test annotation." Any help is much appreciated. thank Gab

0 Answers  


i have file name called add.sh how to run and where to run this shell script file???

0 Answers  


hi friends i got placed in accenture july stil i hav not recieved offer letter... 2 weeks b4 HR cllaed ask abt the location do u perfer.... stil i am waiting i jus wanted to know wat posotin is going if somebody knows pls help me

0 Answers  


What is a critical bug in a testing field?

0 Answers  


I am fresher and i have completed my software testing course and i don't have real time experience,can anybody help me regarding financial domain projects,main testcases in that domain.

0 Answers   GE,






What are the scripting languages used in WinRunner, LoadRunner, QTP, Test director, ClearQuest, Rational Robot? How do you decide which tool will be a best fit for your test enviorment?

3 Answers  


In general, how do you see automation fitting into the overall process of testing?

0 Answers  


Tell us how can you find if an element is displayed on the screen?

0 Answers  


Hi This is raghu.Now am learning the QTP.Please let me know any one how to write the VB Scripts. & Please let me know about the QTP Frame work ( Key word driven frame work) in Detail. Thanks, Raghu(786)

0 Answers   iGate,


Can you explain data-driven testing?

0 Answers  


Any quality test-tracking tool which has live & automated dashboards so that the entire team is updated at any given point of time?

1 Answers  


IN AN APPLICATION HOW DO YOU IDENTIFY THE TASKS WHICH SHUD BE DONE MANUALLY AND WHICH SHUD BE AUTOMATED?

0 Answers   TCS,


Categories