Various questions regarding Selenium Webdriver functionality -


I am new to Selenium, and I was thinking that I have answered 2 questions about its functionality can give. / P>

  1. I use Selenium WebDriver in Eclipse to launch my test class, I run on Run -> Run -> Java application, it is possible for me to have a popup / input box Is not that part of the page that I want to input the test that accept the values ​​I enter, which I can use as test data? For example, when I start the test run, I see an input box that pops up before the actual page that says, "Do you want to test the URL?" And when I enter a value, submit it, driver.get ("
    1. The page I'm trying to test is a" thank you "page, which is a user's information Comes after submitting via a javascript form. Within the Thanks Page, there are various tracking pixels that I need to verify, even though they are located within a JavaScript tag, and there is no element ID The way we verify them, its source code opens up to the TY page, then it is manually checked that different values ​​are found, which indicates that the tracking pixel is in. I confirm the existence of pixels in that situation How can I?

Unfortunately, as a comment to my suggestion There is not enough qualification to post, so I get a good answer

Question 1: You can use the LoginPoint input box to get test data before or after the page load and by using the selenium created in the function You can interact with the page. Question 2: Driver.getPageSource () should represent a string of HTML code and then you can check the String.contains ("which are looking for you") to find the pixels.

I hope this helps. / P>


Comments