How to check a text spelling in the entire site with selenium

1,849 views
Skip to first unread message

Biswajit Samal

unread,
Jan 15, 2014, 9:58:50 AM1/15/14
to selenium-users
Respected All,

I have a scenario where need to check the spelling for a given test on the entire site. I can proceed with manually but if I want to do the same thing with selenium WebDriver, then how can I proceed?

I am sorry if it is not a valid question...

--
Thans and Regards
Biswajit Samal

himanil gupta

unread,
Jan 16, 2014, 1:01:42 AM1/16/14
to seleniu...@googlegroups.com
Hi Biswajit,

For this you have to create a spell checker program which takes any text and performs spell checking operations and then just get the text from webpage and pass it in your program. You can take help of spell checker library https://code.google.com/p/google-api-spelling-java/

HTH

--
Thanks & Regards,
Himanil Gupta

Biswajit Samal

unread,
Jan 16, 2014, 1:16:43 AM1/16/14
to selenium-users
Thanks Himanil ,

 I will try to use it and let u know the result


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0a1583bf-7b14-4d60-b2a0-96906c2ed0ac%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Saimram

unread,
Jan 16, 2014, 1:29:37 PM1/16/14
to seleniu...@googlegroups.com
Hi:

Below is the code where i am able to find the content.

I am launching "Hotmail.com" site and in that site i want to find the text "What's this?

In order to search for the  text took the top most id using firebug..
Below is the code for this.
 
import java.io.IOException;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.TestNG;

public class Searchingtext extends TestNG{

static String text1 = "What's this?";
static String url = "http://hotmail.com";
static WebDriver driver = new ChromeDriver();
static WebElement Whole ;
/**
* @param args
*/
public static void main(String[] args) {
try{
driver.get(url);
Thread.sleep(3000);
Whole= driver.findElement(By.id("shellTD"));
System.out.println("Whole Text :::::::::::::::::++>" +Whole.getText());
if(Whole.getText().contains(text1)){
System.out.println("It is working...");
}
}catch(InterruptedException e){
e.printStackTrace();
}
}
}


On Wednesday, January 15, 2014 8:28:50 PM UTC+5:30, Biswajit Samal wrote:

Lakshmi Mallu

unread,
Jan 7, 2018, 9:52:05 PM1/7/18
to Selenium Users

Hi Biswajit ,


Have you tried that spell checking of a entire website. If yes please share me the procedure
Reply all
Reply to author
Forward
0 new messages