Skip to main content

All Questions

-4 votes
1 answer
91 views

How do I get try and catch to work in my code?

Goal: When calling on 'initializeDriver', I don't want to have to keep throwing an IOexception in another class. How do I properly implement a "try" and "catch" to my code? here is my attempt, ...
FeatherDuster's user avatar
0 votes
1 answer
334 views

Intellij TestNG JDK Settings pass URL

So I've been using Intellij and TestNG recently and I know how to get my code to open the webpage I'm testing in my code but I wanted to pass it through TestNG whenever I run my test. I have seen this ...
OhAye's user avatar
  • 103
-2 votes
1 answer
3k views

Selenium Webdriver - How can I randomise a test to input new details every time?

So I have a Test where I am filling out a form. What I want is to run this test multiple times and each time to use different input values such as a different name. I think I can use some kind of word ...
OhAye's user avatar
  • 103
0 votes
1 answer
137 views

How to click CSS with a space using Selenium Webdriver

I am trying to click the CSS below html body.FormBackground form#LookupForm div#Panel1 table tbody tr td div#GridContainerDiv div table#DataGrid tbody tr.GridSelectedRow td.GridRow So far I have ...
OhAye's user avatar
  • 103
3 votes
4 answers
37k views

How do I click an li inside a ul using Selenium Webdriver

public void testHolidayLink() { // login driver.findElement(By.id("ctl00_MCPH_MainLogin_UserNameTextBox")).sendKeys("username"); driver.findElement(By.id("...
OhAye's user avatar
  • 103