fork download
  1.  
  2. WebElement element = driver.findElement(By.id("userName"));
  3. boolean status = element.isEnabled();
  4. if(status){
  5. element.sendKeys("ToolsQA");
  6. }
Compilation error #stdin compilation error #stdout 0.02s 6908KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 2
    WebElement element = driver.findElement(By.id("userName"));
                     ^
SyntaxError: invalid syntax

stdout
Standard output is empty