I have recorded the script and run test with 1 VU. Checked the response of the application by using developer tools and the response got in application side and response from the JMeter is same but manually open the Application in the browser the response getting is after 60 seconds but while running the script with 1 VU, Think Time is 5 to 7 seconds and pacing time 5 to 7 seconds, getting the response time is 2.400seconds.
I have attached all the script related screenshots.
Made changes to the script as per the below link but still issue is same
Manually Application Vs Jmeter reports differences
Could anyone please help me
Development
Joe inherited some C code that left him scratching his head. It doesn’t start too badly: typedef unsigned char byte;…
Our 169th episode with a summary and discussion of last week’s big AI news! Feel free to leave us feedback…
The META region (Middle-East, Turkey, and Africa) is experiencing a digital surge, with interconnectedness weaving its way into businesses, governments,…
The crucial challenge of enhancing logical reasoning capabilities in Large Language Models (LLMs) is pivotal for achieving human-like reasoning, a…
Despite the advancements in LLMs, the current models still need to continually improve to incorporate new knowledge without losing previously…
I have a scenario where I 1st iframe (i.e parent iframe) which has one button on it and clicking on it another iframe gets open (child iframe). I am able to switch to Parent iframe but when I click on the button and tries to interact with Child iframe I’m not able to do it. Can you suggest what should be the better approach to get this type of scenarios working?
Here is my Script:
public class Iframe {
public static void main (String []args) throws InterruptedException {
System.setProperty(“webdriver.chrome.driver”, Constants.Chrome_Driver);
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.get(“http://automation.cloudaccess.host/administrator”);
driver.findElement(By.id(“mod-login-username”)).sendKeys(“admin”);
driver.findElement(By.id(“mod-login-password”)).sendKeys(“admin@123”);
driver.findElement(By.id(“mod-login-password”)).submit();
driver.findElement(By.linkText(“Components”)).click();
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.linkText(“Messaging”))).build().perform();
driver.findElement(By.linkText(“New Private Message”)).click();
driver.findElement(By.className(“wf-editor-header”)).click();
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath(“//button[@id=”jform_message_imgmanager”]”))).click();
new WebDriverWait(driver, 20).until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.xpath(“//iframe[contains(@src,’&plugin=imgmanager’)]”)));
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath(“//*[@id=”browser-actions”]/a[@id=”help”]”))).click();
new WebDriverWait(driver, 20).until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.xpath(“//iframe[@id=”mce_inlinepopups_50_ifr”]”)));
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath(“//*[@id=”imgmanager.insert”]/i[@class=”icon-file”]”))).click();
driver.quit();
}
}
Error in getting:
Exception in thread “main” org.openqa.selenium.TimeoutException: Expected condition failed: waiting for frame to be available: By.xpath: //iframe[@id=”mce_inlinepopups_50_ifr”] (tried for 20 second(s) with 500 milliseconds interval)
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:81)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:271)
at testScripts.Iframe.main(Iframe.java:53)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //iframe[@id=”mce_inlinepopups_50_ifr”]
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: ‘3.12.0’, revision: ‘7c6e0b3’, time: ‘2018-05-08T15:15:08.936Z’
System info: host: ‘vowellt4’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.15.0-24-generic’, java.version: ‘1.8.0_171’
Driver info: driver.version: unknown
at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:896)
at java.util.Optional.orElseThrow(Optional.java:290)
at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:895)
at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:44)
at org.openqa.selenium.support.ui.ExpectedConditions$17.apply(ExpectedConditions.java:517)
at org.openqa.selenium.support.ui.ExpectedConditions$17.apply(ExpectedConditions.java:513)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:248)
… 1 more
The Jackery SolarSaga 40W mini solar panel is light enough to carry around with ease, and so far, I’m very…
Acer’s beefed-up Chromebook Plus is optimized for cloud gaming and features a vibrant, 120Hz display, a solid processor, and Gemini…
The new iPad Air may be an iterative upgrade on paper, but several features make it still the tablet most…
The United Arab Emirates (UAE) has carved a niche for itself as a beacon of innovation and technological advancement in…
The 2024 cybersecurity landscape is witnessing one of the most phenomenal transformations in the META regions as several nations are…
Well-designed interfaces don’t just happen. Great product experiences are the result of great people, tools, and of course, processes. Source:…
Perhaps we want to time a quiz or put pressure on a survey. Maybe we are just trying to making…
Post Content Source: Read MoreÂ
As a freelance designer, you’ve probably come across the terms LLC and S Corp, but deciding between the two can…
Post Content Source: Read MoreÂ
Natural Language Processing (NLP) has seen transformative advancements over the past few years, largely driven by the developing of sophisticated…
LLMs possess extraordinary natural language understanding capabilities, primarily derived from pretraining on extensive textual data. However, their adaptation to new…
Scale AI has announced the launch of SEAL Leaderboards, an innovative and expert-driven ranking system for large language models (LLMs).…