sansadjadee / fighting-layout-bugs

Automatically exported from code.google.com/p/fighting-layout-bugs
Apache License 2.0
0 stars 0 forks source link

SeleniumException: unterminated string literal #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using Selenium 2.0b3 and fighting-layout-bugs from Maven Central
2. Executing the test code below
3.

What is the expected output? What do you see instead?
Expected is a list of layout bugs. Instead, I see:

2011-05-31 23:26:30,950 [main] DEBUG 
com.googlecode.fightinglayoutbugs.FightingLayoutBugs  - Running 
DetectNeedsHorizontalScrolling ...
Skipping DetectNeedsHorizontalScrolling -- unterminated string literal 
(WARNING: The server did not provide any stacktrace information)
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', 
java.version: '1.6.0_16'
Driver info: driver.version: RemoteWebDriver
2011-05-31 23:26:30,997 [main] DEBUG 
com.googlecode.fightinglayoutbugs.FightingLayoutBugs  - Running 
DetectInvalidImageUrls ...

What version of the product are you using? On what operating system?
fighting-layout-bugs:0.1 from maven central
Windows XP, Firefox 4.0

Please provide any additional information below.

Executed test case:

@Test
   public void testFighting() throws Exception
   {
      String baseUrl = "http://www.google.de/";
      FirefoxBinary binary = new FirefoxBinary( new File( "C:/Programme/Mozilla Firefox 3/firefox.exe" ) );
      FirefoxProfile profile = new FirefoxProfile();
      FirefoxDriver firefoxDriver = new FirefoxDriver( binary, profile );
      Selenium selenium = new WebDriverBackedSelenium( firefoxDriver, baseUrl );

      selenium.open("/");

      FightingLayoutBugs flb = new FightingLayoutBugs();
      flb.setScreenshotDir( new File( "." ) );
      final Collection<LayoutBug> layoutBugs = flb.findLayoutBugsIn( selenium );
      System.out.println( "Found " + layoutBugs.size() + " layout bug(s)" );
      for( LayoutBug bug : layoutBugs )
      {
         System.out.println( bug );
      }

   }

Original issue reported on code.google.com by jupl...@gmail.com on 31 May 2011 at 9:28

Attachments:

GoogleCodeExporter commented 9 years ago
Tried with 1.0-SNAPSHOT as of today, same problem.

Original comment by jupl...@gmail.com on 3 Jun 2011 at 10:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi jupload,

FLB does not support the old Selenium interface anymore, only the new WebDriver 
interface. Therefore I decided to set the status of this issue to WontFix.  

Original comment by michael.tamm2 on 7 Nov 2011 at 11:31