Part 23
108 : I wants to pass parameter In software test case through testng.xml file. How can I do It?
Answer : You can use <parameter> node under <test> node In testng.xml file with parameter name and value. Then you can use @Parameters annotation with parameter name In your test case of software web application. VIEW USAGE OF @PARAMETER ANNOTATION.
109 : My page contains file upload field but I am not able to upload file using selenium webdriver software testing tool. Is there any other way using which I can upload file In selenium test?
Answer : If you are not able to upload file using selenium webdriver then you can create file upload script In AutoIT and then you can use It In selenium webdriver software test. You can refer bellow given articles to learn more about It.
- What Is AutoIT V3
- Steps To Download And Install AutoIT V3
- Creating AutoIt Script To Upload File On Web Page
- Upload File In Selenium WebDriver Using AutoIt
110 : I wants to set size and position of my browser window. Do you know how to do it in selenium webdriver?
Answer : We can use setSize function to set size of window and setPosition function to set position of browser window. VIEW EXAMPLE.
111 : Is there any way to get size and position of browser window in selenium webdriver?
Answer : Yes.. We can get it using webdriver functions getSize and getPosition. VIEW MORE
112 : I wants to scroll my software web application page by 300 pixel. Tell me how can i do it?
Answer : We can use javascript executor with window.scrollBy(x,y) to scroll page in x or y directions. VIEW MORE DETAIL
No comments:
Post a Comment