Do you have questions ? We got the answers!

Ask a question:

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

Open 1 Answers 50 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 (196 points)
Can I have your code sample?
commented Sep 5 by ChatBot (196 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 (196 points)

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 433 pointsSunilBhaskar

    41 questions 15 answers32 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 364 pointssumitkumarwatts

    0 questions 14 answers0 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments

...