I want to hide that I use a Webdriver. I know the needed Code for Python: but I want it for Java. I tried this but I get errors: I hope you can help me out. Best Regards Christian Answer In Java it will be
Tag: automation
Cannot access numeric value of cell from a String cell
I am trying to read an excel file and execute my test case accordingly, now the error I am getting is java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell Here is my implementation of the code: You might notice that I have user String.valueOf(); but to no avail. And here is my code for method call: My imports
Automate status checkbox to verify active/inactive
I wish to automate a scenario, where in a data grid I have a checkbox for Status for a user, whether the user is active or not, now what I am doing is: 1. Creating a list of checkboxes on the Grid, and if the size > 0 then I gettext() of the first record in the grid and store
My code picks the value of only first item from product page
I want to get values of items like a discount, original price, discounted price, and then I retrieve the discounted price with calculation and compare with discounted price on the website I get. But the problem I face is my code only picks the values of the first item of the product page. Answer I updated your code a bit:
i’m tring to automate target.com in selenium using java
1.error in line 3 i can’t access registration btn (I tried using by id ,XPath,name and selector but dont work! ) Answer Type about:profiles in the URL bar of firefox and check if the default profile exists at the location, If it doesn’t exist just create the one and provide the default or desired location. Click on Create a new
How to re run suite without using listener in testng
I had a requirement to re-run a complete suite from the TestNG test method itself if any of the test-case from the suite failed. Is there any way to call complete suite using an XML file or Test class within the Test method? The complete suite should re-run the after-class method or teardown test-case or last test-case @AfterClass or @AfterMethod
I am not able to traverse to parent window to child window
Below code i was used in Selenium Eclipse, But i get a error shown in this line “String childid = it.next();” I am unable to traverse parent window to child window import java.util.Iterator; …
Rest-Assured – How to validate response body with POJO
I’m freshman in Rest-Assured. I have a simple test which gets response body and I want to validate whether the response body matches with my POJO class. Here is my test: Here is my POJO class: So how to validate that the response body structure is equal to my POJO class? Thanks in advance Answer Try the approach like this:
Error calling method using same data (new data is always generated)
I have the following problem to be solved, could you help me? I have two methods in a class. The first generates a document (calling another class) and stores it in a string. The second one I want to …
Rest Assured java.util.HashMap cannot be cast to class java.util.List
I am working on Rest assured framework to automate API testing. actually I want to get the response as list not as an object. cause I want to do assertions for each element. to check data integrity for each element. I am executing this code: This is the Category Class: This is the console log: My Json raw: { “id”: