How to import python code in to selenium

16
Feb
2011
How to import python code in to selenium

The below code which i have written in notepad and saved it as python file(.py)

When i import this file it is giving error loading file... How to solve this problem.



from selenium import selenium
import unittest, time, re

class RSRK Automation(unittest.TestCase):
def setUp(self):
self.verificationErrors = []
self.selenium = selenium("localhost", 4444, "*chrome", "https://secure02.monilink.co.uk/")
self.selenium.start()
[......]
About
This topic belongs to the forum
  • Numbers of topics : 2338
  • Numbers of messages : 6053
  • Numbers of users : 5036
  • Numbers of points : 142
Similar topics
Hello, I am Kitty, and I am a begginer with Selenium IDE. My problem is that if I want to import a code written in Python in Selenium IDE, I receive this error message: error loading test case: no command found I do not know what to do next. I have
Hi, I am working on one healthcare product. In this product on home page "Patient" button is there. When any user clicks on Patient button application opens pop up window/screen having list of some more patients.we can search patient by lastname in same
Is it possible to export recorded code from IDE to JUNIT, do some modification eg. loop, or conditional statements, and import it back to IDE. I am not able to find any loop or conditional statement command, how can we use it. Regards, TurtleRock
Dear guys, I am created the sample python code for selenium rc. Now i am running the code, but the result some like this. Finding files... done. Importing test modules ...
I have following selenium RC code i am using Eclipse error message: Selenium can not be resolved. Whats wrong in the code? Please help package com.example.tests; import com.thoughtworks.selenium.*; import org.junit.After; import
Forums from same category