Reputation: 49
I am new to Selenium, and I was wondering if anyone might be able to answer 2 questions I had regarding its functionality.
For example, when I start the test run, I see an input box that pops up before the actual page to be tested that says "What URL do you want to test?" and when I enter a value, then submit, the driver.get("
Upvotes: 1
Views: 173
Reputation: 1
I would suggest if you are facing popup related issues, you can either accept or reject popup, if it comes before launching of your application.
Upvotes: 0
Reputation: 510
Unfortunately, I don't have enough merits to post my suggestion as a comment, therefore I will post it as an answer.
Question 1: You can use JOptionPane input box to get the test data before or after the page loads and then interact with the page using selenium built in functions.
Question 2: driver.getPageSource() should return a string representation of the HTML code and then you can check using String.contains("what you are looking for") to find the pixels.
I hope this helps.
Upvotes: 1