Exemple #1
0
        public void UploadPhotos(IWebDriver driver, string[] photos)
        {
            driver.FindElement(By.XPath("//*[@id='advertInfoForm']/div[5]/a[2]")).Click();
            WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20));

            wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.XPath("//*[@id='ui-tabs-2']")));

            PublicVar.UploadPhotos(driver, 57, photos);
        }
Exemple #2
0
        public void UploadPhotos(IWebDriver driver, string[] photos)
        {
            //PublicVar.UploadPhotos(driver, By.Name("Images_files"), photos);

            PublicVar.UploadPhotos(driver, By.XPath("//*[@id='button-for-add']/input"), photos, UploadButtonType.button);
        }