skip to Main Content

not able to import ddt in python 2.7 – Magento

import unittest from ddt import data, unpack from selenium import webdriver import ddt @ddt class searchddt(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() self.driver.implicitly_wait(30) self.driver.maximize_window() self.driver.get('https://magento.com/products/magento-commerce') @data(("phones",2)) @unpack def test_search(self,search_val,expected_count): self.searchfield=self.driver.find_element_by_xpath("//I[@aria-hidden='true']/self::I") self.searchfield.clear() self.searchfield.send_keys(search_val) self.searchfield.submit() def tearDown(self): self.driver.quit() if __name__=='__main__': unittest.main(verbosity=2) FAILED (errors=1)…

VIEW QUESTION

Facebook api – Getting WebDriver working with Firefox

Using Laravel 5+ with Vagrant. I have selenium running using: java -jar vendor/se/selenium-server-standalone/bin/selenium-server-standalone.jar -Dwebdriver.firefox.bin="/usr/bin/firefox" using a headless display: sudo Xvfb :10 -ac However when i run codeception: ./vendor/bin/codecept run selenium --steps I get the following error: [FacebookWebDriverExceptionUnknownServerException] Unable to connect…

VIEW QUESTION
Back To Top
Search