[英]Selenium VBA - Runtime Error 11 ElementyNotVisible Error element not interactable
我正在使用下面提到的代碼來實現邊緣瀏覽器的自動化除了“If then Else”塊外,代碼工作正常。 完整腳本如下 在 If then Else 語句中,我想為“display:none”搜索 id“downloadReport”的樣式屬性網站上的代碼是< a href="downloadSt ...
[英]Selenium VBA - Runtime Error 11 ElementyNotVisible Error element not interactable
我正在使用下面提到的代碼來實現邊緣瀏覽器的自動化除了“If then Else”塊外,代碼工作正常。 完整腳本如下 在 If then Else 語句中,我想為“display:none”搜索 id“downloadReport”的樣式屬性網站上的代碼是< a href="downloadSt ...
[英]Is it possible to find common xpath for this elements?
一個元素的xpath是: //div[@class=name-slider-header']//button//img[2] 另一個元素的xpath是: //div[@class=name-slider-header']//button//img[1] 實際上,我需要在單擊“n”次后元素被禁用后檢 ...
[英]C++ Calling method on members "by name", like Pythons `__getattribute__()` using pointer to member
我想做一些類似於 Python 的__getattribute()__的事情,但是在 C++ 中。感覺我應該使用某種指向成員的指針,但我真的不知道如何開始。 我想要做的事情的要點是定義一個 class,它包含指向相同 class 的其他實例的指針,以及各種數據成員。 然后我想要一個可以調用的方法來 ...
[英]How to extract text from aria-label attribute?
所以基本上我正在嘗試進行網絡抓取。 我需要從 indeed 網站上刪除工作生活平衡評級。 但我面臨的挑戰是我不知道如何從 aria-label 中提取文本,所以我可以獲得 output 4.0(滿分 5 星)。 ...
[英]Why does my .get_attribute('href') function return none on some links?
我在某些鏈接上收到 href 鏈接,而其他鏈接則返回 None 值。 我有以下代碼片段來檢索頁面上的前 16 個項目: 當我打印出來時,output 看起來像這樣 我嘗試在 link 和 artikel 之間添加 time.sleep(2),但沒有用。 你也可以在“#”之后嘗試其他方法,但也沒有用 ...
[英]Python modify __getattribute__
我想修改“父類”中 _ getattribute _ 的行為(原因是一些屬性在 XML 元素內,出於其他原因,我不想將 XML 元素中的所有信息轉儲到 class作為屬性)。 我嘗試過的方法是在 class 中定義一個屬性,該屬性收集必須在 XML 元素內搜索的屬性的名稱(僅在這些元素中, _ge ...
[英]i want python xpath data-tip print
我想在這里打印“數據提示”數據。 但我還是做不到。 產出 我試過cash= site.find_element("xpath","//*\[@id='my_cash'\]/div\[1\]/@data-tip") time.sleep(1) print ('cash= ', cash.text) ...
[英]Selenium : Button color
我正在嘗試獲取鼠標按鈕前后的按鈕顏色。 我使用了以下代碼。driver.navigate().to("https://www.leafground.com/button.xhtml"); WebElement color = driver.findElement(By.xpath("//butto ...
[英]How can i take div class name in website source?
另一個文本 header我想在 header 標題中使用 header 和拆分數字,但我無法打印 header 我必須通過鏈接獲取數字搜索它; [ html class ] ( https://i.stack.imgur.com/xo2Ja.png ) 請幫忙.. ...
[英]Problems while adding a number to width attribute
單擊按鈕后,我的代碼應該每 200 毫秒使我的圖像變寬 1px,但我覺得它增加了 20-30。 這是我的代碼<img id="testimage" src="wall.png" width="50" height="25"/> ...
[英]I can't read the dataset in my flashcard in React / Next JS
我正在制作一個帶有簡單匹配游戲的英語/日語抽認卡應用程序。 我想使用數據集值來鏈接兩張卡片,以便檢查它們是否匹配。 我想要它,這樣當我點擊抽認卡時,我就可以取回鍵值。 但是我目前只是空着。 我不知道這是否會有所不同,但關鍵值是動態創建的,因為抽認卡是從我的數據庫中獲取的,然后使用道具應用。 當我使用 ...
[英]Extracting element IDs of required forms in selenium/python
我正在使用 Python 中的 Selenium 抓取此頁面 ( https://boards.greenhouse.io/reddit/jobs/4330383 ) 並使用以下方法遍歷所有必填字段: required = driver.find_elements_by_css_selector ...
[英]Can not get the data attribute
我試圖在我的 JavaScript 中獲取數據屬性。但它未定義而不是真實的。 HTML 代碼如下。 JavaScript 代碼如下。 在這里,我應該在這里得到“真實”。 但為什么會出現 Undefined 呢? ...
[英]C# Getting Attribute Value from HtmlElement
我通過點擊獲得一個 HtmlElement 。 這巧妙地返回了一個 html元素帶有 Id ( loginUserName ), OuterHTML ( <input class="form-control ng-pristine ng-untouched ng-isolate-scope n ...
[英]Python Selenium: How to get the innerHTML from element
我想從一個元素中獲取innerHTML,但是當它運行時出現錯誤說: 代碼試驗: ...
[英]How to extract the values of the alt atributte within img with selenium python
我有以下問題,我一直無法解決。 我必須提取出現在圖像的alt屬性中的文本。 id總是改變,所包含的alt也是如此。 我注意到id只在這部分發生變化 無論如何,我仍然無法登錄。 ...
[英]AttributeError: module 'django.db.models' has no attribute 'Aqtau'
我第一次使用 django。 並遇到了這個錯誤。 你能幫我解決嗎。 像這樣的錯誤,我有很多模型和數據,我把這些數據放到 html 之類的表中,在我想更改數據中的值之后,但是在視圖中我無法搜索我的模型 我的模型 py 是這樣的:(在 city_name 我把模型的名稱放在那里是 Aqtau ) 我 ...
[英]Java getAttribute() method error in the servlet
我在嘗試使用 Request Dispatcher 從一個 servlet 中獲取另一個 servlet 中的總和元素時遇到問題。 但是 S2.java 中的 getAttribute() 方法在從 Request_Dispatcher_example.java 訪問總和時出錯。 我也使用 Http ...
[英]How to get the inner text from an <a> tag
我想要 select 此行的 Remember Sports 部分 我可以獲得 href,但如何獲得實際文本? 這是我嘗試過的,當我試圖將另一個參數傳遞給 get_attribute 或將其留空時,它不起作用。 謝謝你的幫助。 ...
[英]How to get the href value out of a list of webelements with Selenium and Java
我想從下面的元素列表中獲取鏈接屬性,執行時返回 null 代碼試驗: 我需要將值存儲在變量中。 ...