Contributions
Using TestComplete with Google Chrome
I have installed TestComplete. I have recorded some tests with Firefox and IE. When I tried to record some test with Chrome I faced the problem as below: "TestComplete Chrome Extension is not Installed or Is Disabled." (Please see the image) What to do for using Chrome with TestComplete?963Views0likes1CommentHow to run testNg.xml and a soapUI.xml in the same pom.xml(Maven)
I have a pom.xml with 2 plugins, one for a testng.xml(with selenium and smartbear) suite and one for a soapUI.xml tests. I want to run both tests xml's, but only the testng.xml is run. MAde a separate pom, only with the configuration necessary for a soapUI.xml witch runs OK(with install command). <properties> <project.build.sourceEncoding>UTF-8 </project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.18.1</version> </plugin> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>5.1.1</version> <configuration> </configuration> <dependencies> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> <exclusions> <exclusion> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <executions> <execution> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>${project.basedir}/src/test/resources/All-4-WB-soapui-project.xml</projectFile> <outputFolder>${project.build.directory}/project-reports</outputFolder> <junitReport>true</junitReport> <printReport>false</printReport> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18</version> <inherited>true</inherited> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <suiteXmlFiles> <suiteXmlFiles>testng.xml</suiteXmlFiles> </suiteXmlFiles> <includes> <include>**/*EAS*.java</include> </includes> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> </build> <pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>jenkins-releases</id> <url>http://repo.jenkins-ci.org/releases/</url> </repository> <repository> <id>SmartBear Sweden Repository</id> <url>http://www.soapui.org/repository/maven2</url> </repository> <repository> <id>maven2-repository.java.net</id> <name>Java.net Repository for Maven</name> <url>http://java.net/projects/maven-repository/</url> <layout>default</layout> </repository> </repositories> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <groupId>org.jenkins-ci.main</groupId> <artifactId>cli</artifactId> <version>1.514</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.47.1</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.6</version> <scope>test</scope> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-server</artifactId> <version>2.47.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-firefox-driver</artifactId> <version>2.47.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-chrome-driver</artifactId> <version>2.47.1</version> </dependency> </dependencies>7 years agoPlace ReadyAPI QuestionsReadyAPI Questions923Views0likes0CommentsHow to scroll down a web page to verify a specific element?
I'm learning how to use selenium and I'm stuck on figuring out how to scroll down in a website to verify an element exists. I tried using the methods that was found in this questionScrolling to element using webdriver? but selenium won't scroll down the page. Instead it'll give me an error "selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: element" Heres the codes I am using moveToElement: element = driver.find_element_by_xpath('xpath')actions = ActionChains(driver)actions.move_to_element(element).perform() Scrolling into View element = driver.find_element_by_xpath('xpath')driver.execute_script("arguments[1].scrollIntoView();", element) The whole code: from selenium import webdriverfrom selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChainsdriver = webdriver.Firefox()driver.get("https://www.linkedin.com/")element = driver.find_element_by_xpath('/html/body/div/main/div/div[1]/div/h1/img')element = driver.find_element_by_xpath('//*[@id="login-email"]')element.send_keys('')element = driver.find_element_by_xpath('//*[@id="login-password"]')element.send_keys('')element = driver.find_element_by_xpath('//*[@id="login-submit"]')element.click();element = driver.find_element_by_xpath('')actions = ActionChains(driver)actions.move_to_element(element).perform()1.1KViews0likes1Comment