Skip to content
Advertisement

Tag: selenium

How to change my Selenium code to HtmlUnit [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question I have the sellinium code below and it working fine. What I want is

Integrating regex in selenium xpath?

Hello I just start using selenium with java framework : I have this case : I need to count all the check boxes in my view which contains multiple pages (1,2,3) and in each web page i have a bunch of check boxes with the same xpath with different number see the exemple below: xpath fir the second checkbox in

TestNG – how to run the same method at the end of each test

I have something like: and I would like to move Assert.assertFalse(errorsExists()) to BaseTestCase or to TestListener so I will not have to pass it every time at the end of the test. I tried to move it to TestsListener to onFinish but method errorsExists() requires driver and I have problems to get it in there. Update: I want to method

Batch File creation for selenium project

I need to create a .bat file to execute my selenium project that i created with TestNG. I created the .xml file: The problem is i have two @Test and for some reason he executes them as if in the same time since when he tries to login he puts the login values twice. for reference this is my .bat

How can we pass in an ExpectedConditions as a parameter to wait.until in Selenium Java?

I’m finding trouble passing in an ExpectedConditions as a parameter in a method to wait.until(). The wait.until() expects a function to be passed in. I am relatively new to Java, and would appreciate the assistance. Offending code: wait.until() expects a function to be passed into it, which looks like ExpectedConditions.urlToBe(“http://www.test.com”). I am trying to make a method that could be

Selenium test – OK/Cancel popup disappearing immediately

Odd one here. When testing this manually I click the delete button, wait for the popup Then I click OK and the record is removed as expected. But when I try to do the same in Java/Selenium it goes like this-> or Both have the same response, the OK/Cancel popup will appear and then immediately vanish. This is the code

Advertisement