automation

How to control the newly opened window that appears after a click in Selenium WebDriver?

牧云@^-^@ 提交于 2019-12-24 20:19:30
问题 I was just trying to automate the Gmail login process using Selenium WebDriver...After the email id is entered a new page opens to enter the password. How do I enter the password? WebElement element= driver.findElement(By.xpath("//*[@id='ident']")); element.sendKeys("THE EMAIL ID"); element.sendKeys(Keys.ENTER); WebElement ele= driver.findElement(By.xpath("//*[@id='passd']")); ele.sendKeys("THE PASSWORD"); ele.sendKeys(Keys.ENTER); 回答1: You have to switch the driver to current handler. Please

selenium grid is not starting more than 5 sessions

[亡魂溺海] 提交于 2019-12-24 20:03:04
问题 I have done grid setup as follows: Hub: iMAC Started with: java -jar Downloads/selenium-server-standalone-2.52.0.jar -port 4444 -role hub Node1: Win8 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node1.json Node2: Win10 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http:

CucumberJvmSMFormatter Error on IntelliJ IDE

让人想犯罪 __ 提交于 2019-12-24 19:53:13
问题 Why am I getting below error while running feature file in IntellijIDE with Java/Selenium + cucumber framework? Error running 'Scenario: validating utag data on Login page ': org/jetbrains/plugins/cucumber/java/run/CucumberJvmSMFormatter 回答1: I have had a similar issue but was fixed after doing the following: Uninstall the gherkin plugin and the cucumber for java plugin and then reinstall them. File -> Settings -> Plugin 来源: https://stackoverflow.com/questions/51108935/cucumberjvmsmformatter

Selenium Webdriver Automated login

别来无恙 提交于 2019-12-24 19:26:55
问题 I have selenium webdriver and am using C# to login and post a random message to facebook, linkedin and twitter. I cannot click the post button on linkedin and facebook. Please Help using (IWebDriver driver = new ChromeDriver(opt)) { driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl("https://www.facebook.com"); Console.WriteLine("Opened Facebook"); driver.FindElement(By.Id("email")).SendKeys("userName"); Console.WriteLine("username entered"); driver.FindElement(By.Id("pass"))

UFT not identifying a window in some playback

一个人想着一个人 提交于 2019-12-24 17:23:15
问题 I am using descriptive programming in UFT. During playback, I want to check if the Windows print dialog does appear. Then I want to click the Cancel button in that dialog. My problem: Sporadically QTP fails to identify the printing dialog, so clicking on the cancel button fails. How can this possibly sometimes fail, sometimes succeed? My code syntax given below: Set Window_EnterMeter = browser_servicemanager.Window("regexpwndtitle:=Enter Meters.*") Set dialog_Print = Window_EnterMeter.Dialog(

VBA Automation (macro) isn't working very well on IE tabs

百般思念 提交于 2019-12-24 17:18:56
问题 I'm new here and on VBA, it's my 2nd post and I don't speak english very well. So, please, take easy on me =D Last week I was having some troubles trying to automatize some procedures on IE. My macro worked very well when opened on new windows , but when I tried to run the same macro on tabs it wasn't working. It seemed (maybe) the macro wasn't recognizing the actual tab. I post that problem here and a wonderfull guy called Deepak-MSFT helped me a lot. He taught me how to run the macro on

VBA Automation (macro) isn't working very well on IE tabs

ⅰ亾dé卋堺 提交于 2019-12-24 17:18:50
问题 I'm new here and on VBA, it's my 2nd post and I don't speak english very well. So, please, take easy on me =D Last week I was having some troubles trying to automatize some procedures on IE. My macro worked very well when opened on new windows , but when I tried to run the same macro on tabs it wasn't working. It seemed (maybe) the macro wasn't recognizing the actual tab. I post that problem here and a wonderfull guy called Deepak-MSFT helped me a lot. He taught me how to run the macro on

Not able to automate button click on “Oracle VM virtual box” using pywinauto in python

被刻印的时光 ゝ 提交于 2019-12-24 16:56:00
问题 I am working on the Automation of loading an image file in "Oracle VM Virtual box" to create a virtual machine using Pywinauto in python. I am able to automate the installation of Virtual Box software & after that able to launch the exe also shown in the image But after that I am not able to do any GUI operation on "Oracle VM VirtualBox Manager" (e.g.Selecting File Menu or click New button) automatically using Pywinauto. I have attached the snapshot of Inspect tool for Oracle VM Virtual box

how to confirm a NumberPicker after sending data with Appium

…衆ロ難τιáo~ 提交于 2019-12-24 16:22:13
问题 I write test automation for Android Native app. And I want to enter/send value to a NumberPicker, my code is below: WebElement heightValue = appiumDriver.findElement(By.className("android.widget.NumberPicker")); heightValue.sendKeys("180"); appiumDriver.findElement(By.id("com.kmp.connect.coach:id/buttonDefaultPositive")).click(); Problem is, I have to click confirm on native keyboard and then click OK button of my app, then value is set. But I can not interfere with native keyboard. I try

jenkins unable to run “ /build-tools/17.0.0/aapt ”

我是研究僧i 提交于 2019-12-24 16:01:04
问题 does anyone know why is jenkins unable to run this file and gives a no such file or directory error ? the file is there. it has the following permissions : root@ott-ci-01:/usr/local/lib/android-sdk-linux/build-tools/17.0.0# ls -la /usr/local/lib/android-sdk-linux/build-tools/17.0.0/aapt -rwxr-xr-x 1 root root 1122758 Jun 17 10:07 /usr/local/lib/android-sdk-linux/build-tools/17.0.0/aapt any ideas ? 来源: https://stackoverflow.com/questions/17156569/jenkins-unable-to-run-build-tools-17-0-0-aapt