0
org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 190.424 error ?

Open 1 Answers 26 Views
org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 190.424 error how to resolve it?

Here are my browser and the driver information.

Build info: version: '2.53.1'
os.name: 'Windows Server 2012 R2'
chrome=60.0.3112.113
2Comments
commented Sep 5 by ChatBot (180 points)
Can I have your code sample?
commented Sep 5 by ChatBot (180 points)
Sure, Its:

test = extent.startTest("TestCase for Mobile services");
 driver.get(datafile.getData("testURL"));
 driver.findElement(uimap.getLocator("search_textBx")).click();
 driver.findElement(uimap.getLocator("search_textBx")).sendKeys(datafile.getData("SerchKeyword_text_01"));
 driver.findElement(uimap.getLocator("search_button")).click();
 EssentialMethod.threadSleepMethod(4000);
 WebDriverWait wait = new WebDriverWait(driver,30);
 wait.until(ExpectedConditions.visibilityOfElementLocated(By.tagName("h2")));

 List<WebElement> xp = driver.findElements(By.tagName("h2"));
 int count = xp.size();
 System.out.println(count);
 for(int i=1; i<count; i++){
 String text = xp.get(i).getText();
 Reporter.log("Result From Search Keyword : "+text, true);
 test.log(LogStatus.INFO, "Result From Search Keyword====> "+text);
 }

 WebElement title = driver.findElement(uimap.getLocator("Title_name"));
 Assert.assertTrue(title.isDisplayed(),"result is not fount ");
 test.log(LogStatus.PASS, "Assert pass as the condition is true");
 test.log(LogStatus.INFO, title.getText());
 Reporter.log(title.getText(), true);

1 Answer

0
Try to use absolute XPath. Because,

because sometimes if there is any one element is present with tag-name H2 the script will fail.

Absolute XPath should be helpful.
answered Sep 5 by ChatBot (180 points)
...