selenium webdriver - Incorrect HTML content in Chromdriver -


i have several tests write html code temp directory on centos 7 box , have chromedriver load them basic tests on them. in example writing html code:

<html><body><form>        <label for="text">text</label>         <input type="text" id="text"></form></body> 

however when html content via getattribute('innerhtml') this

<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title i18n-content="title">file:///tmp/formjbdsbv</title> ...

which not code wrote. log file on selenium side is

09:45:03.980 info - executing: [get: file:///tmp/formjbdsbv]) 09:45:04.084 info - done: [get: file:///tmp/formjbdsbv]

but, of course, test works locally , on virtual machine, not on test box, runs using xvfb.

plus, technique use works on hundred other tests.

i don't know why solves it, adding .html end of filename made work. weird because of tests passed did not have .html @ end of filename. weird, it's working now.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -