Skip to content

Tag: selenium

Unable to click a button in Selenium

I’m facing a tough time clicking a button from Selenium. Here’s the DOM: http://pasteboard.co/GHIjMd6.png I’ve declared the button WebElement this way using Xpath (a valid Xpath that returns one node as per Firepath): I’ve tried clicking the said button with send_this_msg_btn Xpath in …

Java Selenium get JSON response body

I using Java with Selenium webdriver and I wondering is it possible to get JSON body response? I asking because it is possible to get JSON request body using this code: but I can’t get body from response but response exist also in this log. Is any way to get response body? Answer Edit-2 Because of a ope…

Nested loop in RobotFramework

I need to create a nested loop in Robot framework. Can you please Help me do it? I need to have a nested loop which compares all the ${text} with all the @{lines} in the file. Thanks in Advance Answer No nested loops in RF; that can be done only by calling a keyword with the inner loop, in the

Not able to create object of ExtentReports

I am new to extent reporting. I am using Selenium Webdriver and want to use Extent reports with it. But my code is not able to create ExtentReport object. The above code is giving exception as : Using the below configuration : if anyone have idea. Please help. Answer I tested your code. It shows no exception …